[ws2_32_new]
authorChristoph von Wittich <christoph_vw@reactos.org>
Sun, 16 Feb 2014 21:20:51 +0000 (21:20 +0000)
committerChristoph von Wittich <christoph_vw@reactos.org>
Sun, 16 Feb 2014 21:20:51 +0000 (21:20 +0000)
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
reactos/dll/win32/ws2_32_new/src/startup.c

index 884b4fb..7df1d44 100644 (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();
index aad4009..ac77279 100644 (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 */