[WS2_32]
authorCameron Gutman <aicommander@gmail.com>
Tue, 10 Aug 2010 07:14:42 +0000 (07:14 +0000)
committerCameron Gutman <aicommander@gmail.com>
Tue, 10 Aug 2010 07:14:42 +0000 (07:14 +0000)
- Fix a crash when running with ws2_32 debugging on

svn path=/trunk/; revision=48507

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

index 12620c6..4772819 100644 (file)
@@ -642,7 +642,7 @@ WSAAccept(IN     SOCKET s,
     if (Socket == INVALID_SOCKET)
         WSASetLastError(Errno);
 
-    if ( addr )
+    if ( addr && addrlen )
     {
 #if DBG
         LPSOCKADDR_IN sa = (LPSOCKADDR_IN)addr;