From 77bc3969c0d84d5794572a227c0a5c0f3efce443 Mon Sep 17 00:00:00 2001 From: Christoph von Wittich Date: Sun, 16 Feb 2014 21:20:51 +0000 Subject: [PATCH] [ws2_32_new] always return "WinSock 2.0" as windows does (verified on windows 8) fix a typo svn path=/trunk/; revision=62222 --- reactos/dll/win32/ws2_32_new/src/dllmain.c | 14 +++++++------- reactos/dll/win32/ws2_32_new/src/startup.c | 4 ++-- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/reactos/dll/win32/ws2_32_new/src/dllmain.c b/reactos/dll/win32/ws2_32_new/src/dllmain.c index 884b4fb0fe3..7df1d44c046 100644 --- a/reactos/dll/win32/ws2_32_new/src/dllmain.c +++ b/reactos/dll/win32/ws2_32_new/src/dllmain.c @@ -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(); diff --git a/reactos/dll/win32/ws2_32_new/src/startup.c b/reactos/dll/win32/ws2_32_new/src/startup.c index aad40099152..ac7727917b4 100644 --- a/reactos/dll/win32/ws2_32_new/src/startup.c +++ b/reactos/dll/win32/ws2_32_new/src/startup.c @@ -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 */ -- 2.17.1