Author: cgutman
Date: Mon Aug  9 15:42:51 2010
New Revision: 48491

URL: http://svn.reactos.org/svn/reactos?rev=48491&view=rev
Log:
[WS2_32]
- 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

Modified:
    trunk/reactos/dll/win32/ws2_32/misc/dllmain.c

Modified: trunk/reactos/dll/win32/ws2_32/misc/dllmain.c
URL: 
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/ws2_32/misc/dllmain.c?rev=48491&r1=48490&r2=48491&view=diff
==============================================================================
--- trunk/reactos/dll/win32/ws2_32/misc/dllmain.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/ws2_32/misc/dllmain.c [iso-8859-1] Mon Aug  9 
15:42:51 2010
@@ -459,7 +459,7 @@
 
         DereferenceProviderByPointer(Provider);
 
-        if (Errno != NO_ERROR)
+        if (Count == SOCKET_ERROR)
         {
             WSASetLastError(Errno);
             return SOCKET_ERROR;


Reply via email to