https://git.reactos.org/?p=reactos.git;a=commitdiff;h=7b650d2c3ef90cb7ea3fa0029ab2b75835f5fa5c

commit 7b650d2c3ef90cb7ea3fa0029ab2b75835f5fa5c
Author:     Pierre Schweitzer <pie...@reactos.org>
AuthorDate: Sat Oct 19 16:29:37 2019 +0200
Commit:     Pierre Schweitzer <pie...@reactos.org>
CommitDate: Sat Oct 19 16:59:57 2019 +0200

    [MOUNTMGR] Remove cancel routine before completing pending IRP
---
 drivers/filters/mountmgr/notify.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/filters/mountmgr/notify.c 
b/drivers/filters/mountmgr/notify.c
index 97bc9470376..9a1e7885ac8 100644
--- a/drivers/filters/mountmgr/notify.c
+++ b/drivers/filters/mountmgr/notify.c
@@ -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);

Reply via email to