Author: pschweitzer
Date: Sat Apr 19 06:32:58 2014
New Revision: 62791
URL:
http://svn.reactos.org/svn/reactos?rev=62791&view=rev
Log:
[CDFS]
Don't attempt anything during the cleanup of stream file (or of an unopened file).
Fix crash on boot.
Modified:
trunk/reactos/drivers/filesystems/cdfs/cleanup.c
Modified: trunk/reactos/drivers/filesystems/cdfs/cleanup.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/filesystems/cdfs/c…
==============================================================================
--- trunk/reactos/drivers/filesystems/cdfs/cleanup.c [iso-8859-1] (original)
+++ trunk/reactos/drivers/filesystems/cdfs/cleanup.c [iso-8859-1] Sat Apr 19 06:32:58
2014
@@ -45,6 +45,12 @@
DPRINT("CdfsCleanupFile(DeviceExt %p, FileObject %p)\n",
DeviceExt,
FileObject);
+
+ PFCB Fcb = FileObject->FsContext;
+ if (!Fcb)
+ {
+ return STATUS_SUCCESS;
+ }
/* Notify about the cleanup */
FsRtlNotifyCleanup(DeviceExt->NotifySync,