Author: cgutman
Date: Tue Aug 10 07:14:42 2010
New Revision: 48507
URL:
http://svn.reactos.org/svn/reactos?rev=48507&view=rev
Log:
[WS2_32]
- Fix a crash when running with ws2_32 debugging on
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/dllm…
==============================================================================
--- 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] Tue Aug 10 07:14:42 2010
@@ -642,7 +642,7 @@
if (Socket == INVALID_SOCKET)
WSASetLastError(Errno);
- if ( addr )
+ if ( addr && addrlen )
{
#if DBG
LPSOCKADDR_IN sa = (LPSOCKADDR_IN)addr;