[CDFS]
[reactos.git] / reactos / drivers / filesystems / cdfs / close.c
index fe8de05..eaf645d 100644 (file)
@@ -94,7 +94,7 @@ CdfsClose(
     DeviceObject = IrpContext->DeviceObject;
     Stack = IrpContext->Stack;
 
-    if (DeviceObject == CdfsGlobalData->DeviceObject)
+    if (DeviceObject == CdfsGlobalData->CdFsDeviceObject || DeviceObject == CdfsGlobalData->HddFsDeviceObject)
     {
         DPRINT("Closing file system\n");
         Status = STATUS_SUCCESS;