Author: cgutman
Date: Mon Jun 7 02:44:00 2010
New Revision: 47647
URL:
http://svn.reactos.org/svn/reactos?rev=47647&view=rev
Log:
I hate making the same mistake twice in one day
Modified:
trunk/reactos/dll/win32/msafd/misc/dllmain.c
Modified: trunk/reactos/dll/win32/msafd/misc/dllmain.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/msafd/misc/dllma…
==============================================================================
--- trunk/reactos/dll/win32/msafd/misc/dllmain.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/msafd/misc/dllmain.c [iso-8859-1] Mon Jun 7 02:44:00 2010
@@ -22,7 +22,6 @@
HANDLE GlobalHeap;
WSPUPCALLTABLE Upcalls;
LPWPUCOMPLETEOVERLAPPEDREQUEST lpWPUCompleteOverlappedRequest;
-ULONG SocketCount = 0;
PSOCKET_INFORMATION SocketListHead = NULL;
LIST_ENTRY SockHelpersListHead = { NULL, NULL };
ULONG SockAsyncThreadRefCount;
@@ -2267,6 +2266,9 @@
{
PSOCKET_INFORMATION CurrentSocket;
+ if (!SocketListHead)
+ return NULL;
+
/* This is a special case */
if (SocketListHead->Handle == Handle)
return SocketListHead;