- IopCompleteRequest: Remove the hack related to Irp->UserEvent, fixed by 36047

svn path=/trunk/; revision=36251
This commit is contained in:
Stefan Ginsberg 2008-09-15 04:32:45 +00:00
parent 2d4aadb83f
commit af0b1eb575

View file

@ -346,16 +346,8 @@ IopCompleteRequest(IN PKAPC Apc,
/* Check if this is an Asynch API */ /* Check if this is an Asynch API */
if (!(Irp->Flags & IRP_SYNCHRONOUS_API)) if (!(Irp->Flags & IRP_SYNCHRONOUS_API))
{ {
/* HACK */
if (*((PULONG)(Irp->UserEvent) - 1) != 0x87878787)
{
/* Dereference the event */ /* Dereference the event */
ObDereferenceObject(Irp->UserEvent); ObDereferenceObject(Irp->UserEvent);
}
else
{
DPRINT1("Not an executive event -- should not be dereferenced\n");
}
} }
/* /*