Author: tfaber
Date: Sat Nov 7 11:54:17 2015
New Revision: 69829
URL:
http://svn.reactos.org/svn/reactos?rev=69829&view=rev
Log:
[WS2_32]
- Fill the protocol info buffer in WSAEnumProtocolsA/W. Should fix some
ws2_32_winetest:sock crashes and flakiness.
Modified:
trunk/reactos/dll/win32/ws2_32/misc/stubs.c
Modified: trunk/reactos/dll/win32/ws2_32/misc/stubs.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/ws2_32/misc/stub…
==============================================================================
--- trunk/reactos/dll/win32/ws2_32/misc/stubs.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/ws2_32/misc/stubs.c [iso-8859-1] Sat Nov 7 11:54:17 2015
@@ -497,6 +497,11 @@
{
UNIMPLEMENTED
+ if (lpProtocolBuffer)
+ {
+ RtlZeroMemory(lpProtocolBuffer, *lpdwBufferLength);
+ }
+ *lpdwBufferLength = sizeof(WSAPROTOCOL_INFOA);
WSASetLastError(WSASYSCALLFAILURE);
return SOCKET_ERROR;
}
@@ -513,6 +518,11 @@
{
UNIMPLEMENTED
+ if (lpProtocolBuffer)
+ {
+ RtlZeroMemory(lpProtocolBuffer, *lpdwBufferLength);
+ }
+ *lpdwBufferLength = sizeof(WSAPROTOCOL_INFOW);
WSASetLastError(WSASYSCALLFAILURE);
return SOCKET_ERROR;
}