tc seems to 'forget' high-dword of dir-size in a wfx

Please report only one bug per message!

Moderators: white, Hacker, petermad, Stefan2

Post Reply
JustAnotherTCUser
Member
Member
Posts: 149
Joined: 2008-10-14, 17:12 UTC

tc seems to 'forget' high-dword of dir-size in a wfx

Post by *JustAnotherTCUser »

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
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48005
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

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
Post Reply