mirror of
https://github.com/reactos/reactos.git
synced 2024-11-18 21:13:52 +00:00
Support special FILE_WRITE_TO_END_OF_FILE byte offset to append data to a file.
svn path=/trunk/; revision=11102
This commit is contained in:
parent
d394870def
commit
f15ffecda4
1 changed files with 6 additions and 1 deletions
|
@ -1,5 +1,5 @@
|
|||
|
||||
/* $Id: rw.c,v 1.69 2004/08/31 20:02:24 hbirr Exp $
|
||||
/* $Id: rw.c,v 1.70 2004/09/28 10:52:55 ekohl Exp $
|
||||
*
|
||||
* COPYRIGHT: See COPYING in the top level directory
|
||||
* PROJECT: ReactOS kernel
|
||||
|
@ -828,6 +828,11 @@ NTSTATUS VfatWrite (PVFAT_IRP_CONTEXT IrpContext)
|
|||
}
|
||||
|
||||
ByteOffset = IrpContext->Stack->Parameters.Write.ByteOffset;
|
||||
if (ByteOffset.u.LowPart == FILE_WRITE_TO_END_OF_FILE &&
|
||||
ByteOffset.u.HighPart == 0xffffffff)
|
||||
{
|
||||
ByteOffset.QuadPart = Fcb->RFCB.FileSize.QuadPart;
|
||||
}
|
||||
Length = IrpContext->Stack->Parameters.Write.Length;
|
||||
BytesPerSector = IrpContext->DeviceExt->FatInfo.BytesPerSector;
|
||||
|
||||
|
|
Loading…
Reference in a new issue