mirror of
https://github.com/reactos/reactos.git
synced 2024-08-25 04:38:43 +00:00
[WS2_32_NEW] Properly set the sin_zero field. Revealed by ws2_32_apitest:addrinfo, fixed by Peter Hater. CORE-10440
svn path=/trunk/; revision=69800
This commit is contained in:
parent
2b6ae1241e
commit
48a82a72f4
|
@ -132,6 +132,7 @@ NewAddrInfo(IN INT SocketType,
|
|||
SockAddress->sin_family = AF_INET;
|
||||
SockAddress->sin_port = Port;
|
||||
SockAddress->sin_addr.s_addr = Address;
|
||||
ZeroMemory(SockAddress->sin_zero, sizeof(SockAddress->sin_zero));
|
||||
|
||||
/* Fill out the addrinfo */
|
||||
AddrInfo->ai_family = PF_INET;
|
||||
|
|
Loading…
Reference in a new issue