Author: pschweitzer
Date: Sun Jun 4 19:17:10 2017
New Revision: 74919
URL:
http://svn.reactos.org/svn/reactos?rev=74919&view=rev
Log:
[UDFS]
Complete the implementation of UDFGetNetworkInformation() so that it sets all the fields.
This fixes displaying file size in explorer.
CORE-4375
CORE-13366
Modified:
trunk/reactos/drivers/filesystems/udfs/fileinfo.cpp
Modified: trunk/reactos/drivers/filesystems/udfs/fileinfo.cpp
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/filesystems/udfs/f…
==============================================================================
--- trunk/reactos/drivers/filesystems/udfs/fileinfo.cpp [iso-8859-1] (original)
+++ trunk/reactos/drivers/filesystems/udfs/fileinfo.cpp [iso-8859-1] Sun Jun 4 19:17:10
2017
@@ -697,6 +697,7 @@
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 @@
#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