return STATUS_ACCESS_DENIED;
}
- if (BooleanFlagOn(DeviceExt->Flags, VCB_VOLUME_LOCKED))
- {
- return STATUS_ACCESS_DENIED;
- }
-
Status = CdfsOpenFile(DeviceExt,
FileObject,
&FileObject->FileName);
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 */