mirror of
https://github.com/reactos/reactos.git
synced 2025-08-03 05:55:48 +00:00
[FASTFAT]
Properly check for volume open on lock request svn path=/trunk/; revision=65309
This commit is contained in:
parent
86e82138e7
commit
0ca2bff44e
1 changed files with 3 additions and 1 deletions
|
@ -865,14 +865,16 @@ VfatLockOrUnlockVolume(
|
||||||
{
|
{
|
||||||
PFILE_OBJECT FileObject;
|
PFILE_OBJECT FileObject;
|
||||||
PDEVICE_EXTENSION DeviceExt;
|
PDEVICE_EXTENSION DeviceExt;
|
||||||
|
PVFATFCB Fcb;
|
||||||
|
|
||||||
DPRINT("VfatLockOrUnlockVolume(%p, %d)\n", IrpContext, Lock);
|
DPRINT("VfatLockOrUnlockVolume(%p, %d)\n", IrpContext, Lock);
|
||||||
|
|
||||||
DeviceExt = IrpContext->DeviceExt;
|
DeviceExt = IrpContext->DeviceExt;
|
||||||
FileObject = IrpContext->FileObject;
|
FileObject = IrpContext->FileObject;
|
||||||
|
Fcb = FileObject->FsContext;
|
||||||
|
|
||||||
/* Only allow locking with the volume open */
|
/* Only allow locking with the volume open */
|
||||||
if (FileObject->FsContext != DeviceExt->VolumeFcb)
|
if (!(Fcb->Flags & FCB_IS_VOLUME))
|
||||||
{
|
{
|
||||||
return STATUS_ACCESS_DENIED;
|
return STATUS_ACCESS_DENIED;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue