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

Please report only one bug per message!

Moderators: Stefan2, white, sheep, Hacker

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 » 2010-06-02, 13:22 UTC

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: 36255
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) » 2010-06-02, 21:32 UTC

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
http://www.ghisler.com

Post Reply