- 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

@ -345,18 +345,10 @@ 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");
}
}
/* /*
* Now, if this is a Synch I/O File Object, then this event is * Now, if this is a Synch I/O File Object, then this event is