always return "WinSock 2.0" as windows does
merge winsock 1 init code from ws2_32_new

svn path=/trunk/; revision=62203
This commit is contained in:
Christoph von Wittich 2014-02-16 07:05:23 +00:00
parent 3797d9184a
commit 6e36352b9a

View file

@ -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;