https://git.reactos.org/?p=reactos.git;a=commitdiff;h=a2ed758a205cedcafbc83…
commit a2ed758a205cedcafbc836e4ca5ac6b87d60c2e6
Author: Pierre Schweitzer <pierre(a)reactos.org>
AuthorDate: Sat Nov 4 21:31:35 2017 +0100
[CDFS] Addendum to 03a9d8c: check for volume state (locked?) before opening a file
CORE-13957
---
drivers/filesystems/cdfs/create.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/drivers/filesystems/cdfs/create.c b/drivers/filesystems/cdfs/create.c
index 09a054bf1b..dde7a2404d 100644
--- a/drivers/filesystems/cdfs/create.c
+++ b/drivers/filesystems/cdfs/create.c
@@ -222,6 +222,11 @@ CdfsCreateFile(PDEVICE_OBJECT DeviceObject,
return STATUS_ACCESS_DENIED;
}
+ if (BooleanFlagOn(DeviceExt->Flags, VCB_VOLUME_LOCKED))
+ {
+ return STATUS_ACCESS_DENIED;
+ }
+
Status = CdfsOpenFile(DeviceExt,
FileObject,
&FileObject->FileName);