From 9f9c29b9524d05a00257a954552e725dbb562351 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Herv=C3=A9=20Poussineau?= Date: Thu, 9 Nov 2006 12:38:40 +0000 Subject: [PATCH] Correctly clear DO_DEVICE_INITIALIZING flag See issue #1862 for more details. svn path=/trunk/; revision=24706 --- reactos/drivers/filesystems/cdfs/cdfs.c | 1 + reactos/drivers/filesystems/cdfs/fsctl.c | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/reactos/drivers/filesystems/cdfs/cdfs.c b/reactos/drivers/filesystems/cdfs/cdfs.c index 8db1860b05f..d7b44ccead0 100644 --- a/reactos/drivers/filesystems/cdfs/cdfs.c +++ b/reactos/drivers/filesystems/cdfs/cdfs.c @@ -99,6 +99,7 @@ DriverEntry(PDRIVER_OBJECT DriverObject, DriverObject->DriverUnload = NULL; IoRegisterFileSystem(DeviceObject); + DeviceObject->Flags &= ~DO_DEVICE_INITIALIZING; return(STATUS_SUCCESS); } diff --git a/reactos/drivers/filesystems/cdfs/fsctl.c b/reactos/drivers/filesystems/cdfs/fsctl.c index 7c71edcec32..74b22cdf878 100644 --- a/reactos/drivers/filesystems/cdfs/fsctl.c +++ b/reactos/drivers/filesystems/cdfs/fsctl.c @@ -358,8 +358,8 @@ CdfsMountVolume(PDEVICE_OBJECT DeviceObject, DeviceExt->StorageDevice->Vpb->DeviceObject = NewDeviceObject; DeviceExt->StorageDevice->Vpb->RealDevice = DeviceExt->StorageDevice; DeviceExt->StorageDevice->Vpb->Flags |= VPB_MOUNTED; - DeviceObject->StackSize = DeviceExt->StorageDevice->StackSize + 1; - DeviceObject->Flags &= ~DO_DEVICE_INITIALIZING; + NewDeviceObject->StackSize = DeviceExt->StorageDevice->StackSize + 1; + NewDeviceObject->Flags &= ~DO_DEVICE_INITIALIZING; DeviceExt->StreamFileObject = IoCreateStreamFileObject(NULL, DeviceExt->StorageDevice);