mirror of
https://github.com/reactos/reactos.git
synced 2025-02-22 08:25:03 +00:00
[WS2_32]
- Allocate enough memory for the WSAPROTOCOL_INFOW struct svn path=/trunk/; revision=54614
This commit is contained in:
parent
5ef42e9838
commit
5eb7f4cb10
1 changed files with 3 additions and 2 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue