mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 18:15:11 +00:00
[CDFS] Don't allow FS opening when volume is locked
This commit is contained in:
parent
484f33f0d3
commit
244b4f99b3
1 changed files with 5 additions and 5 deletions
|
@ -222,11 +222,6 @@ 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);
|
||||
|
@ -274,6 +269,11 @@ CdfsCreate(
|
|||
|
||||
DeviceObject = IrpContext->DeviceObject;
|
||||
DeviceExt = DeviceObject->DeviceExtension;
|
||||
if (BooleanFlagOn(DeviceExt->Flags, VCB_VOLUME_LOCKED))
|
||||
{
|
||||
return STATUS_ACCESS_DENIED;
|
||||
}
|
||||
|
||||
if (DeviceObject == CdfsGlobalData->CdFsDeviceObject || DeviceObject == CdfsGlobalData->HddFsDeviceObject)
|
||||
{
|
||||
/* DeviceObject represents FileSystem instead of logical volume */
|
||||
|
|
Loading…
Reference in a new issue