[CDFS]
authorPierre Schweitzer <pierre@reactos.org>
Sat, 19 Apr 2014 06:32:58 +0000 (06:32 +0000)
committerPierre Schweitzer <pierre@reactos.org>
Sat, 19 Apr 2014 06:32:58 +0000 (06:32 +0000)
Don't attempt anything during the cleanup of stream file (or of an unopened file).
Fix crash on boot.

svn path=/trunk/; revision=62791

reactos/drivers/filesystems/cdfs/cleanup.c

index 19d866d..ea7fe5b 100644 (file)
@@ -46,6 +46,12 @@ CdfsCleanupFile(PDEVICE_EXTENSION DeviceExt,
         DeviceExt,
         FileObject);
 
+    PFCB Fcb = FileObject->FsContext;
+    if (!Fcb)
+    {
+        return STATUS_SUCCESS;
+    }
+
     /* Notify about the cleanup */
     FsRtlNotifyCleanup(DeviceExt->NotifySync,
                        &(DeviceExt->NotifyList),