mirror of
https://github.com/reactos/reactos.git
synced 2024-08-21 02:43:48 +00:00
I hate making the same mistake twice in one day
svn path=/trunk/; revision=47647
This commit is contained in:
parent
e0549f6100
commit
9cf2124763
|
@ -22,7 +22,6 @@ DWORD DebugTraceLevel = 0;
|
|||
HANDLE GlobalHeap;
|
||||
WSPUPCALLTABLE Upcalls;
|
||||
LPWPUCOMPLETEOVERLAPPEDREQUEST lpWPUCompleteOverlappedRequest;
|
||||
ULONG SocketCount = 0;
|
||||
PSOCKET_INFORMATION SocketListHead = NULL;
|
||||
LIST_ENTRY SockHelpersListHead = { NULL, NULL };
|
||||
ULONG SockAsyncThreadRefCount;
|
||||
|
@ -2267,6 +2266,9 @@ GetSocketStructure(SOCKET Handle)
|
|||
{
|
||||
PSOCKET_INFORMATION CurrentSocket;
|
||||
|
||||
if (!SocketListHead)
|
||||
return NULL;
|
||||
|
||||
/* This is a special case */
|
||||
if (SocketListHead->Handle == Handle)
|
||||
return SocketListHead;
|
||||
|
|
Loading…
Reference in a new issue