hi,
with the struct "WIN32_FIND_DATAW FindData" i list in my own wfx-plugin some entries as directory (FILE_ATTRIBUTE_DIRECTORY) and associate a size value (which can represent different things) in the fields "FindData->nFileSizeHigh" and "FindData->nFileSizeLow".
it seems that tc doesn't use the high dword, only the value of the low-dword is shown.
if the entry is "tagged" as a file (without FILE_ATTRIBUTE_DIRECTORY), then the correct size is shown.
regards
tc seems to 'forget' high-dword of dir-size in a wfx
Moderators: Hacker, petermad, Stefan2, white
-
- Member
- Posts: 149
- Joined: 2008-10-14, 17:12 UTC
- ghisler(Author)
- Site Admin
- Posts: 50383
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
I checked my code, and I can confirm it - but I don't remember why I'm doing it. Btw, I'm doing the same in the ANSI function, and also for local files:
Code: Select all
s.size:=f.nFileSizeLow;
if f.dwFileAttributes and fadirectory=0 then
s.SizeHigh:=f.nFileSizeHigh
else
s.SizeHigh:=0;
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com