Check for Request == NULL.

svn path=/trunk/; revision=17604
This commit is contained in:
Filip Navara 2005-09-02 13:12:44 +00:00
parent b6e746354a
commit 02488d3f49

View file

@ -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;