Return correct size in FileNetworkOpenInformation operation

svn path=/trunk/; revision=68349
This commit is contained in:
Pierre Schweitzer 2015-07-05 19:08:08 +00:00
parent 53bbe9ea86
commit c0146f1340

View 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);