Author: cwittich
Date: Sun Feb 16 07:05:23 2014
New Revision: 62203
URL:
http://svn.reactos.org/svn/reactos?rev=62203&view=rev
Log:
[ws2_32]
always return "WinSock 2.0" as windows does
merge winsock 1 init code from ws2_32_new
Modified:
trunk/reactos/dll/win32/ws2_32/misc/dllmain.c
Modified: trunk/reactos/dll/win32/ws2_32/misc/dllmain.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/ws2_32/misc/dllm…
==============================================================================
--- trunk/reactos/dll/win32/ws2_32/misc/dllmain.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/ws2_32/misc/dllmain.c [iso-8859-1] Sun Feb 16 07:05:23 2014
@@ -103,12 +103,23 @@
lpWSAData->wVersion = wVersionRequested;
lpWSAData->wHighVersion = MAKEWORD(2,2);
- lstrcpyA(lpWSAData->szDescription, "WinSock 2.2");
+ lstrcpyA(lpWSAData->szDescription, "WinSock 2.0");
lstrcpyA(lpWSAData->szSystemStatus, "Running");
lpWSAData->iMaxSockets = 0;
lpWSAData->iMaxUdpDg = 0;
lpWSAData->lpVendorInfo = NULL;
+ if (LOBYTE(wVersionRequested) == 1)
+ {
+ lpWSAData->iMaxSockets = 32767;
+ lpWSAData->iMaxUdpDg = 65467;
+ }
+ else
+ {
+ lpWSAData->iMaxSockets = 0;
+ lpWSAData->iMaxUdpDg = 0;
+ }
+
/*FIXME: increment internal counter */
WSASETINITIALIZED;