From 9bc2c3ba15356e012ea7f8402991ae35ddae822b Mon Sep 17 00:00:00 2001 From: Thomas Faber Date: Thu, 16 Oct 2014 21:43:03 +0000 Subject: [PATCH] [NPFS] - Don't return a canceled IRP from NpRemoveDataQueueEntry. svn path=/trunk/; revision=64772 --- reactos/drivers/filesystems/npfs/datasup.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/reactos/drivers/filesystems/npfs/datasup.c b/reactos/drivers/filesystems/npfs/datasup.c index 8e408497a73..2bdbf99f278 100644 --- a/reactos/drivers/filesystems/npfs/datasup.c +++ b/reactos/drivers/filesystems/npfs/datasup.c @@ -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);