Zebediah Figura (@zfigura) commented about dlls/kernelbase/file.c:
return FALSE; }
- if (progress) {
total.u.LowPart = GetFileSize(h1, (LPDWORD)&total.u.HighPart);
- }
There is a wine-staging patch for this which reuses the existing NtQueryInformationFile call, using FileNetworkOpenInformation to retrieve the size at the same time as other attributes. That seems simpler and more efficient.