mirror of
https://github.com/reactos/reactos.git
synced 2024-11-18 21:13:52 +00:00
[ws2_32]
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:
parent
3797d9184a
commit
6e36352b9a
1 changed files with 12 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue