[NTFS]
authorPierre Schweitzer <pierre@reactos.org>
Sun, 5 Jul 2015 19:08:08 +0000 (19:08 +0000)
committerPierre Schweitzer <pierre@reactos.org>
Sun, 5 Jul 2015 19:08:08 +0000 (19:08 +0000)
Return correct size in FileNetworkOpenInformation operation

svn path=/trunk/; revision=68349

reactos/drivers/filesystems/ntfs/finfo.c

index 8ebff44..1ebc5d9 100644 (file)
@@ -209,8 +209,8 @@ NtfsGetNetworkOpenInformation(PNTFS_FCB Fcb,
     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);