[CDFS] Addendum to 03a9d8c: check for volume state (locked?) before opening a file

CORE-13957
This commit is contained in:
Pierre Schweitzer 2017-11-04 21:31:35 +01:00
parent 03a9d8c7ca
commit a2ed758a20
No known key found for this signature in database
GPG key ID: 7545556C3D585B0B

View file

@ -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);