mirror of
https://github.com/reactos/reactos.git
synced 2024-07-23 20:58:16 +00:00
[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
This commit is contained in:
parent
cef084134d
commit
d3e907f461
|
@ -697,6 +697,7 @@ UDFGetNetworkInformation(
|
||||||
PtrBuffer->CreationTime = Fcb->NTRequiredFCB->CreationTime;
|
PtrBuffer->CreationTime = Fcb->NTRequiredFCB->CreationTime;
|
||||||
PtrBuffer->LastAccessTime = Fcb->NTRequiredFCB->LastAccessTime;
|
PtrBuffer->LastAccessTime = Fcb->NTRequiredFCB->LastAccessTime;
|
||||||
PtrBuffer->LastWriteTime = Fcb->NTRequiredFCB->LastWriteTime;
|
PtrBuffer->LastWriteTime = Fcb->NTRequiredFCB->LastWriteTime;
|
||||||
|
PtrBuffer->ChangeTime = Fcb->NTRequiredFCB->ChangeTime;
|
||||||
|
|
||||||
FileInfo = Fcb->FileInfo;
|
FileInfo = Fcb->FileInfo;
|
||||||
|
|
||||||
|
@ -711,6 +712,13 @@ UDFGetNetworkInformation(
|
||||||
#ifdef UDF_DBG
|
#ifdef UDF_DBG
|
||||||
if(!FileInfo->Dloc->DirIndex) AdPrint(("*****!!!!! Directory has no DirIndex !!!!!*****\n"));
|
if(!FileInfo->Dloc->DirIndex) AdPrint(("*****!!!!! Directory has no DirIndex !!!!!*****\n"));
|
||||||
#endif
|
#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
|
// Similarly, fill in attributes indicating a hidden file, system
|
||||||
// file, compressed file, temporary file, etc. if the FSD supports
|
// file, compressed file, temporary file, etc. if the FSD supports
|
||||||
|
|
Loading…
Reference in a new issue