[MOUNTMGR] Remove cancel routine before completing pending IRP
authorPierre Schweitzer <pierre@reactos.org>
Sat, 19 Oct 2019 14:29:37 +0000 (16:29 +0200)
committerPierre Schweitzer <pierre@reactos.org>
Sat, 19 Oct 2019 14:59:57 +0000 (16:59 +0200)
drivers/filters/mountmgr/notify.c

index 97bc947..9a1e788 100644 (file)
@@ -328,6 +328,7 @@ MountMgrNotify(IN PDEVICE_EXTENSION DeviceExtension)
     {
         NextEntry = RemoveHeadList(&(DeviceExtension->IrpListHead));
         Irp = CONTAINING_RECORD(NextEntry, IRP, Tail.Overlay.ListEntry);
+        IoSetCancelRoutine(Irp, NULL);
         InsertTailList(&CopyList, &(Irp->Tail.Overlay.ListEntry));
     }
     IoReleaseCancelSpinLock(OldIrql);