mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 18:15:11 +00:00
[WS2_32] Check that the handle table is initialized before accessing it.
This commit is contained in:
parent
162f51e6b8
commit
0d41593749
1 changed files with 2 additions and 2 deletions
|
@ -142,8 +142,8 @@ WsSockGetSocket(IN SOCKET Handle)
|
|||
PWSSOCKET Socket;
|
||||
|
||||
/* Let WAH do the translation */
|
||||
if ((Socket = (PWSSOCKET)WahReferenceContextByHandle(WsSockHandleTable,
|
||||
(HANDLE)Handle)))
|
||||
if ((WsSockHandleTable != NULL) &&
|
||||
(Socket = (PWSSOCKET)WahReferenceContextByHandle(WsSockHandleTable, (HANDLE)Handle)))
|
||||
{
|
||||
return Socket;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue