[ws2_32_new]

always return "WinSock 2.0" as windows does (verified on windows 8)
fix a typo

svn path=/trunk/; revision=62222
This commit is contained in:
Christoph von Wittich 2014-02-16 21:20:51 +00:00
parent 2f200ee21c
commit 77bc3969c0
2 changed files with 9 additions and 9 deletions

View file

@ -44,13 +44,13 @@ DllMain(HANDLE hModule,
/* TLS Allocation */
if (GlobalTlsIndex == TLS_OUT_OF_INDEXES)
{
GlobalTlsIndex = TlsAlloc();
if (GlobalTlsIndex == TLS_OUT_OF_INDEXES)
{
return FALSE;
}
}
{
GlobalTlsIndex = TlsAlloc();
if (GlobalTlsIndex == TLS_OUT_OF_INDEXES)
{
return FALSE;
}
}
/* Initialize some critical sections */
WsCreateStartupSynchronization();

View file

@ -165,7 +165,7 @@ WSAStartup(IN WORD wVersionRequested,
/* We support Winsock 2.2 */
lpWSAData->wHighVersion = MAKEWORD(2,2);
lstrcpy(lpWSAData->szDescription, "WinSock 2.2");
lstrcpy(lpWSAData->szDescription, "WinSock 2.0");
lstrcpy(lpWSAData->szSystemStatus, "Running");
/*
@ -183,7 +183,7 @@ WSAStartup(IN WORD wVersionRequested,
lpWSAData->iMaxUdpDg = 0;
}
/* Enter the startup syncronization lock */
/* Enter the startup synchronization lock */
WsStartupLock();
/* Now setup all our objects */