--- branches/ext2/reactos/drivers/fs/ext2/src/write.c 2005-01-20 23:21:14 UTC (rev 13172)
+++ branches/ext2/reactos/drivers/fs/ext2/src/write.c 2005-01-20 23:24:51 UTC (rev 13173)
@@ -544,7 +544,7 @@
LogicalBlockSize = EXT2_MIN_BLOCK_SIZE << PtrVCB->LogBlockSize;
- if ( ByteOffset.QuadPart + WriteLength >= PtrReqdFCB->CommonFCBHeader.FileSize.QuadPart )
+ if ( ByteOffset.QuadPart + WriteLength > PtrReqdFCB->CommonFCBHeader.FileSize.QuadPart )
{
if( PagingIo )
{
@@ -621,7 +621,7 @@
// Start offset is the New File size
StartOffsetForZeroing.QuadPart =
- PtrReqdFCB->CommonFCBHeader.FileSize.QuadPart + WriteLength;
+ ByteOffset.QuadPart + WriteLength;
// End offset is the New Allocation size
EndOffsetForZeroing.QuadPart = PtrReqdFCB->CommonFCBHeader.AllocationSize.QuadPart;
}