Author: pschweitzer
Date: Mon May 25 17:54:27 2015
New Revision: 67914
URL:
http://svn.reactos.org/svn/reactos?rev=67914&view=rev
Log:
[FASTFAT]
[NTFS]
Addendum to r67911
Modified:
trunk/reactos/drivers/filesystems/fastfat/close.c
trunk/reactos/drivers/filesystems/fastfat/rw.c
trunk/reactos/drivers/filesystems/ntfs/rw.c
Modified: trunk/reactos/drivers/filesystems/fastfat/close.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/filesystems/fastfa…
==============================================================================
--- trunk/reactos/drivers/filesystems/fastfat/close.c [iso-8859-1] (original)
+++ trunk/reactos/drivers/filesystems/fastfat/close.c [iso-8859-1] Mon May 25 17:54:27
2015
@@ -89,7 +89,7 @@
#if 0
/* There occurs a dead look at the call to
CcRosDeleteFileCache/ObDereferenceObject/VfatClose
in CmLazyCloseThreadMain if VfatClose is execute asynchronous in a worker thread.
*/
- if (!ExAcquireResourceExclusiveLite(&IrpContext->DeviceExt->DirResource,
IrpContext->Flags & IRPCONTEXT_CANWAIT))
+ if (!ExAcquireResourceExclusiveLite(&IrpContext->DeviceExt->DirResource,
BooleanFlagOn(IrpContext->Flags, IRPCONTEXT_CANWAIT)))
#else
if (!ExAcquireResourceExclusiveLite(&IrpContext->DeviceExt->DirResource,
TRUE))
#endif
Modified: trunk/reactos/drivers/filesystems/fastfat/rw.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/filesystems/fastfa…
==============================================================================
--- trunk/reactos/drivers/filesystems/fastfat/rw.c [iso-8859-1] (original)
+++ trunk/reactos/drivers/filesystems/fastfat/rw.c [iso-8859-1] Mon May 25 17:54:27 2015
@@ -655,7 +655,7 @@
}
}
- Buffer = VfatGetUserBuffer(IrpContext->Irp, IrpContext->Irp->Flags &
IRP_PAGING_IO);
+ Buffer = VfatGetUserBuffer(IrpContext->Irp,
BooleanFlagOn(IrpContext->Irp->Flags, IRP_PAGING_IO));
if (!Buffer)
{
Status = STATUS_INVALID_USER_BUFFER;
@@ -926,7 +926,7 @@
OldFileSize = Fcb->RFCB.FileSize;
- Buffer = VfatGetUserBuffer(IrpContext->Irp, IrpContext->Irp->Flags &
IRP_PAGING_IO);
+ Buffer = VfatGetUserBuffer(IrpContext->Irp,
BooleanFlagOn(IrpContext->Irp->Flags, IRP_PAGING_IO));
if (!Buffer)
{
Status = STATUS_INVALID_USER_BUFFER;
Modified: trunk/reactos/drivers/filesystems/ntfs/rw.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/filesystems/ntfs/r…
==============================================================================
--- trunk/reactos/drivers/filesystems/ntfs/rw.c [iso-8859-1] (original)
+++ trunk/reactos/drivers/filesystems/ntfs/rw.c [iso-8859-1] Mon May 25 17:54:27 2015
@@ -196,7 +196,7 @@
DeviceExt = DeviceObject->DeviceExtension;
ReadLength = Stack->Parameters.Read.Length;
ReadOffset = Stack->Parameters.Read.ByteOffset;
- Buffer = NtfsGetUserBuffer(Irp, Irp->Flags & IRP_PAGING_IO);
+ Buffer = NtfsGetUserBuffer(Irp, BooleanFlagOn(Irp->Flags, IRP_PAGING_IO));
Status = NtfsReadFile(DeviceExt,
FileObject,