mirror of
https://github.com/reactos/reactos.git
synced 2024-12-27 09:34:43 +00:00
Check for Request == NULL.
svn path=/trunk/; revision=17604
This commit is contained in:
parent
b6e746354a
commit
02488d3f49
1 changed files with 6 additions and 0 deletions
|
@ -263,6 +263,12 @@ NtReplyWaitReceivePortEx(IN HANDLE PortHandle,
|
|||
Request = EiDequeueMessagePort(Port);
|
||||
KeReleaseSpinLock(&Port->Lock, oldIrql);
|
||||
|
||||
if (Request == NULL)
|
||||
{
|
||||
ObDereferenceObject(Port);
|
||||
return STATUS_UNSUCCESSFUL;
|
||||
}
|
||||
|
||||
if (Request->Message.u2.s2.Type == LPC_CONNECTION_REQUEST)
|
||||
{
|
||||
PORT_MESSAGE Header;
|
||||
|
|
Loading…
Reference in a new issue