mirror of
https://github.com/reactos/reactos.git
synced 2025-04-20 12:29:56 +00:00
[FASTFAT]
[NTFS] Addendum to r67911 svn path=/trunk/; revision=67914
This commit is contained in:
parent
23eb05714f
commit
3e2082bafa
3 changed files with 4 additions and 4 deletions
|
@ -89,7 +89,7 @@ VfatClose(
|
||||||
#if 0
|
#if 0
|
||||||
/* There occurs a dead look at the call to CcRosDeleteFileCache/ObDereferenceObject/VfatClose
|
/* There occurs a dead look at the call to CcRosDeleteFileCache/ObDereferenceObject/VfatClose
|
||||||
in CmLazyCloseThreadMain if VfatClose is execute asynchronous in a worker thread. */
|
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
|
#else
|
||||||
if (!ExAcquireResourceExclusiveLite(&IrpContext->DeviceExt->DirResource, TRUE))
|
if (!ExAcquireResourceExclusiveLite(&IrpContext->DeviceExt->DirResource, TRUE))
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -655,7 +655,7 @@ VfatRead(
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Buffer = VfatGetUserBuffer(IrpContext->Irp, IrpContext->Irp->Flags & IRP_PAGING_IO);
|
Buffer = VfatGetUserBuffer(IrpContext->Irp, BooleanFlagOn(IrpContext->Irp->Flags, IRP_PAGING_IO));
|
||||||
if (!Buffer)
|
if (!Buffer)
|
||||||
{
|
{
|
||||||
Status = STATUS_INVALID_USER_BUFFER;
|
Status = STATUS_INVALID_USER_BUFFER;
|
||||||
|
@ -926,7 +926,7 @@ VfatWrite(
|
||||||
|
|
||||||
OldFileSize = Fcb->RFCB.FileSize;
|
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)
|
if (!Buffer)
|
||||||
{
|
{
|
||||||
Status = STATUS_INVALID_USER_BUFFER;
|
Status = STATUS_INVALID_USER_BUFFER;
|
||||||
|
|
|
@ -196,7 +196,7 @@ NtfsRead(PNTFS_IRP_CONTEXT IrpContext)
|
||||||
DeviceExt = DeviceObject->DeviceExtension;
|
DeviceExt = DeviceObject->DeviceExtension;
|
||||||
ReadLength = Stack->Parameters.Read.Length;
|
ReadLength = Stack->Parameters.Read.Length;
|
||||||
ReadOffset = Stack->Parameters.Read.ByteOffset;
|
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,
|
Status = NtfsReadFile(DeviceExt,
|
||||||
FileObject,
|
FileObject,
|
||||||
|
|
Loading…
Reference in a new issue