Author: pschweitzer
Date: Sun Jul 5 19:08:08 2015
New Revision: 68349
URL:
http://svn.reactos.org/svn/reactos?rev=68349&view=rev
Log:
[NTFS]
Return correct size in FileNetworkOpenInformation operation
Modified:
trunk/reactos/drivers/filesystems/ntfs/finfo.c
Modified: trunk/reactos/drivers/filesystems/ntfs/finfo.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/filesystems/ntfs/f…
==============================================================================
--- trunk/reactos/drivers/filesystems/ntfs/finfo.c [iso-8859-1] (original)
+++ trunk/reactos/drivers/filesystems/ntfs/finfo.c [iso-8859-1] Sun Jul 5 19:08:08 2015
@@ -209,8 +209,8 @@
NetworkInfo->LastWriteTime.QuadPart = FileName->LastWriteTime;
NetworkInfo->ChangeTime.QuadPart = FileName->ChangeTime;
- NetworkInfo->EndOfFile.QuadPart = FileName->AllocatedSize;
- NetworkInfo->AllocationSize.QuadPart = ROUND_UP(FileName->AllocatedSize,
DeviceExt->NtfsInfo.BytesPerCluster);
+ NetworkInfo->EndOfFile.QuadPart = Fcb->RFCB.FileSize;
+ NetworkInfo->AllocationSize.QuadPart = Fcb->RFCB.AllocationSize;
NtfsFileFlagsToAttributes(FileName->FileAttributes,
&NetworkInfo->FileAttributes);