- Don't return a canceled IRP from NpRemoveDataQueueEntry.

svn path=/trunk/; revision=64772
This commit is contained in:
Thomas Faber 2014-10-16 21:43:03 +00:00
parent 104149a180
commit 9bc2c3ba15

View file

@ -146,9 +146,10 @@ NpRemoveDataQueueEntry(IN PNP_DATA_QUEUE DataQueue,
Irp = QueueEntry->Irp;
NpFreeClientSecurityContext(QueueEntry->ClientSecurityContext);
if (Irp && IoSetCancelRoutine(Irp, NULL))
if (Irp && !IoSetCancelRoutine(Irp, NULL))
{
Irp->Tail.Overlay.DriverContext[3] = NULL;
Irp = NULL;
}
ExFreePool(QueueEntry);