From 4c86c611f15495a5b52a408253ed78ceb9175360 Mon Sep 17 00:00:00 2001 From: Pierre Schweitzer Date: Sat, 19 Apr 2014 06:32:58 +0000 Subject: [PATCH] [CDFS] 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 | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/reactos/drivers/filesystems/cdfs/cleanup.c b/reactos/drivers/filesystems/cdfs/cleanup.c index 19d866de6fd..ea7fe5b0a0c 100644 --- a/reactos/drivers/filesystems/cdfs/cleanup.c +++ b/reactos/drivers/filesystems/cdfs/cleanup.c @@ -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), -- 2.17.1