[ros-diffs] [hbirr] 13173: Fixed the range which must be zeroed if
the write starts after the end of the file.
hbirr at svn.reactos.com
hbirr at svn.reactos.com
Fri Jan 21 00:24:53 CET 2005
Fixed the range which must be zeroed if the write starts after the end
of the file.
Modified: branches/ext2/reactos/drivers/fs/ext2/src/write.c
_____
Modified: branches/ext2/reactos/drivers/fs/ext2/src/write.c
--- 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;
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.reactos.org/pipermail/ros-diffs/attachments/20050121/af740845/attachment.html
More information about the Ros-diffs
mailing list