mirror of
https://github.com/reactos/reactos.git
synced 2024-12-29 10:35:28 +00:00
[CDFS] Addendum to 03a9d8c
: check for volume state (locked?) before opening a file
CORE-13957
This commit is contained in:
parent
03a9d8c7ca
commit
a2ed758a20
1 changed files with 5 additions and 0 deletions
|
@ -222,6 +222,11 @@ CdfsCreateFile(PDEVICE_OBJECT DeviceObject,
|
||||||
return STATUS_ACCESS_DENIED;
|
return STATUS_ACCESS_DENIED;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (BooleanFlagOn(DeviceExt->Flags, VCB_VOLUME_LOCKED))
|
||||||
|
{
|
||||||
|
return STATUS_ACCESS_DENIED;
|
||||||
|
}
|
||||||
|
|
||||||
Status = CdfsOpenFile(DeviceExt,
|
Status = CdfsOpenFile(DeviceExt,
|
||||||
FileObject,
|
FileObject,
|
||||||
&FileObject->FileName);
|
&FileObject->FileName);
|
||||||
|
|
Loading…
Reference in a new issue