[WS2_32]
authorCameron Gutman <aicommander@gmail.com>
Mon, 9 Aug 2010 15:42:51 +0000 (15:42 +0000)
committerCameron Gutman <aicommander@gmail.com>
Mon, 9 Aug 2010 15:42:51 +0000 (15:42 +0000)
- Check the return value of WSPSelect instead of the error number because the error number doesn't have to be initialized if the function doesn't return SOCKET_ERROR

svn path=/trunk/; revision=48491

reactos/dll/win32/ws2_32/misc/dllmain.c

index b71f80e..12620c6 100644 (file)
@@ -459,7 +459,7 @@ select(IN      INT nfds,
 
         DereferenceProviderByPointer(Provider);
 
-        if (Errno != NO_ERROR)
+        if (Count == SOCKET_ERROR)
         {
             WSASetLastError(Errno);
             return SOCKET_ERROR;