diff --git a/drivers/filesystems/cdfs/create.c b/drivers/filesystems/cdfs/create.c index 09a054bf1b7..dde7a2404d2 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);