From d3e907f4615acfb212f43de3c1514041ca8440ac Mon Sep 17 00:00:00 2001 From: Pierre Schweitzer Date: Sun, 4 Jun 2017 19:17:10 +0000 Subject: [PATCH] [UDFS] Complete the implementation of UDFGetNetworkInformation() so that it sets all the fields. This fixes displaying file size in explorer. CORE-4375 CORE-13366 svn path=/trunk/; revision=74919 --- reactos/drivers/filesystems/udfs/fileinfo.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/reactos/drivers/filesystems/udfs/fileinfo.cpp b/reactos/drivers/filesystems/udfs/fileinfo.cpp index fa6b3e1ae20..bb611e517c6 100644 --- a/reactos/drivers/filesystems/udfs/fileinfo.cpp +++ b/reactos/drivers/filesystems/udfs/fileinfo.cpp @@ -697,6 +697,7 @@ UDFGetNetworkInformation( PtrBuffer->CreationTime = Fcb->NTRequiredFCB->CreationTime; PtrBuffer->LastAccessTime = Fcb->NTRequiredFCB->LastAccessTime; PtrBuffer->LastWriteTime = Fcb->NTRequiredFCB->LastWriteTime; + PtrBuffer->ChangeTime = Fcb->NTRequiredFCB->ChangeTime; FileInfo = Fcb->FileInfo; @@ -711,6 +712,13 @@ UDFGetNetworkInformation( #ifdef UDF_DBG if(!FileInfo->Dloc->DirIndex) AdPrint(("*****!!!!! Directory has no DirIndex !!!!!*****\n")); #endif + } else { + if(Fcb->NTRequiredFCB->CommonFCBHeader.AllocationSize.LowPart == 0xffffffff) { + Fcb->NTRequiredFCB->CommonFCBHeader.AllocationSize.QuadPart = + UDFSysGetAllocSize(Fcb->Vcb, UDFGetFileSize(FileInfo)); + } + PtrBuffer->AllocationSize = Fcb->NTRequiredFCB->CommonFCBHeader.AllocationSize; + PtrBuffer->EndOfFile = Fcb->NTRequiredFCB->CommonFCBHeader.FileSize; } // Similarly, fill in attributes indicating a hidden file, system // file, compressed file, temporary file, etc. if the FSD supports -- 2.17.1