mirror of
https://github.com/reactos/reactos.git
synced 2024-08-21 10:53:15 +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;
|
HANDLE GlobalHeap;
|
||||||
WSPUPCALLTABLE Upcalls;
|
WSPUPCALLTABLE Upcalls;
|
||||||
LPWPUCOMPLETEOVERLAPPEDREQUEST lpWPUCompleteOverlappedRequest;
|
LPWPUCOMPLETEOVERLAPPEDREQUEST lpWPUCompleteOverlappedRequest;
|
||||||
ULONG SocketCount = 0;
|
|
||||||
PSOCKET_INFORMATION SocketListHead = NULL;
|
PSOCKET_INFORMATION SocketListHead = NULL;
|
||||||
LIST_ENTRY SockHelpersListHead = { NULL, NULL };
|
LIST_ENTRY SockHelpersListHead = { NULL, NULL };
|
||||||
ULONG SockAsyncThreadRefCount;
|
ULONG SockAsyncThreadRefCount;
|
||||||
|
@ -2267,6 +2266,9 @@ GetSocketStructure(SOCKET Handle)
|
||||||
{
|
{
|
||||||
PSOCKET_INFORMATION CurrentSocket;
|
PSOCKET_INFORMATION CurrentSocket;
|
||||||
|
|
||||||
|
if (!SocketListHead)
|
||||||
|
return NULL;
|
||||||
|
|
||||||
/* This is a special case */
|
/* This is a special case */
|
||||||
if (SocketListHead->Handle == Handle)
|
if (SocketListHead->Handle == Handle)
|
||||||
return SocketListHead;
|
return SocketListHead;
|
||||||
|
|
Loading…
Reference in a new issue