mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-02 19:26:32 +00:00
[WS2_32]
- Allocate enough memory for the WSAPROTOCOL_INFOW struct svn path=/trunk/; revision=54614
This commit is contained in:
@@ -393,10 +393,11 @@ WSAStringToAddressA(IN LPSTR AddressString,
|
||||
|
||||
if (lpProtocolInfo)
|
||||
{
|
||||
len = WSAPROTOCOL_LEN+1;
|
||||
len = WSAPROTOCOL_LEN+1;
|
||||
lpProtoInfoW = HeapAlloc(GetProcessHeap(),
|
||||
0,
|
||||
len * sizeof(WCHAR) );
|
||||
FIELD_OFFSET(WSAPROTOCOL_INFOW, szProtocol) +
|
||||
(len * sizeof(WCHAR)));
|
||||
|
||||
memcpy(lpProtoInfoW,
|
||||
lpProtocolInfo,
|
||||
|
||||
Reference in New Issue
Block a user