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),