From 6e36352b9a6767c556c3e4d55d900c11df1f92ce Mon Sep 17 00:00:00 2001 From: Christoph von Wittich Date: Sun, 16 Feb 2014 07:05:23 +0000 Subject: [PATCH] [ws2_32] always return "WinSock 2.0" as windows does merge winsock 1 init code from ws2_32_new svn path=/trunk/; revision=62203 --- reactos/dll/win32/ws2_32/misc/dllmain.c | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/reactos/dll/win32/ws2_32/misc/dllmain.c b/reactos/dll/win32/ws2_32/misc/dllmain.c index d5c96dd44c3..ea5d45f1420 100644 --- a/reactos/dll/win32/ws2_32/misc/dllmain.c +++ b/reactos/dll/win32/ws2_32/misc/dllmain.c @@ -103,12 +103,23 @@ WSAStartup(IN WORD wVersionRequested, 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;