[NPFS]
authorThomas Faber <thomas.faber@reactos.org>
Thu, 16 Oct 2014 21:43:03 +0000 (21:43 +0000)
committerThomas Faber <thomas.faber@reactos.org>
Thu, 16 Oct 2014 21:43:03 +0000 (21:43 +0000)
- Don't return a canceled IRP from NpRemoveDataQueueEntry.

svn path=/trunk/; revision=64772

reactos/drivers/filesystems/npfs/datasup.c

index 8e40849..2bdbf99 100644 (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);