From d284e715f47e5aa219e9664d5b1ef708e9e902be Mon Sep 17 00:00:00 2001 From: Eric Kohl Date: Mon, 1 Jun 2015 14:26:58 +0000 Subject: [PATCH] [CDFS] Do not complete an IRP that will be passed down to a lower driver. svn path=/trunk/; revision=67989 --- reactos/drivers/filesystems/cdfs/devctrl.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/reactos/drivers/filesystems/cdfs/devctrl.c b/reactos/drivers/filesystems/cdfs/devctrl.c index 46650cf5aa8..f2db3c302b6 100644 --- a/reactos/drivers/filesystems/cdfs/devctrl.c +++ b/reactos/drivers/filesystems/cdfs/devctrl.c @@ -26,6 +26,8 @@ CdfsDeviceControl( PFILE_OBJECT FileObject; PIO_STACK_LOCATION Stack; + DPRINT("CdfsDeviceControl()\n"); + ASSERT(IrpContext); Irp = IrpContext->Irp; @@ -59,6 +61,10 @@ CdfsDeviceControl( /* Pass it to storage driver */ IoSkipCurrentIrpStackLocation(Irp); Vcb = (PVCB)Stack->DeviceObject->DeviceExtension; + + /* Lower driver will complete - we don't have to */ + IrpContext->Flags &= ~IRPCONTEXT_COMPLETE; + Status = IoCallDriver(Vcb->StorageDevice, Irp); }