mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-08-28 19:26:16 +00:00
[FASTFAT]
Properly check for volume open on lock request svn path=/trunk/; revision=65309
This commit is contained in:
@@ -865,14 +865,16 @@ VfatLockOrUnlockVolume(
|
||||
{
|
||||
PFILE_OBJECT FileObject;
|
||||
PDEVICE_EXTENSION DeviceExt;
|
||||
PVFATFCB Fcb;
|
||||
|
||||
DPRINT("VfatLockOrUnlockVolume(%p, %d)\n", IrpContext, Lock);
|
||||
|
||||
DeviceExt = IrpContext->DeviceExt;
|
||||
FileObject = IrpContext->FileObject;
|
||||
Fcb = FileObject->FsContext;
|
||||
|
||||
/* Only allow locking with the volume open */
|
||||
if (FileObject->FsContext != DeviceExt->VolumeFcb)
|
||||
if (!(Fcb->Flags & FCB_IS_VOLUME))
|
||||
{
|
||||
return STATUS_ACCESS_DENIED;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user