Author: pschweitzer
Date: Fri Nov 7 15:38:31 2014
New Revision: 65309
URL:
http://svn.reactos.org/svn/reactos?rev=65309&view=rev
Log:
[FASTFAT]
Properly check for volume open on lock request
Modified:
trunk/reactos/drivers/filesystems/fastfat/fsctl.c
Modified: trunk/reactos/drivers/filesystems/fastfat/fsctl.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/filesystems/fastfa…
==============================================================================
--- trunk/reactos/drivers/filesystems/fastfat/fsctl.c [iso-8859-1] (original)
+++ trunk/reactos/drivers/filesystems/fastfat/fsctl.c [iso-8859-1] Fri Nov 7 15:38:31
2014
@@ -865,14 +865,16 @@
{
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;
}