Re: [2/2] dpnet: return a TCP/IP provider in IDirectPlay8PeerImpl_EnumServiceProviders
9 Sep
2011
9 Sep
'11
2:03 p.m.
Louis Lenders <xerox_xerox2000(a)yahoo.co.uk> writes:
+ info = HeapAlloc(GetProcessHeap(), 0, req_size); + + info->pwszName = (LPWSTR)(info + 1); + + if(!pguidServiceProvider) + { + lstrcpyW(info->pwszName, dp_providerW); + info->guid = CLSID_DP8SP_TCPIP; + } + else + { + lstrcpyW(info->pwszName, dp_adapterW); + info->guid = adapter_guid; + } + + *pSPInfoBuffer = *info; + *pcReturned = 1; + + HeapFree(GetProcessHeap(), 0, info);
This doesn't make sense, you are returning freed data. -- Alexandre Julliard julliard(a)winehq.org
5214
Age (days ago)
5214
Last active (days ago)
0 comments
1 participants
participants (1)
-
Alexandre Julliard