This forum uses cookies. Click X button to hide this message. What is stored? 
Total Commander Forum Index Total Commander
Forum - Public Discussion and Support
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

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

 
Post new topic   Reply to topic    Total Commander Forum Index -> TC7.5x(a) final bug reports (English) Printable version
View previous topic :: View next topic  
Author Message
JustAnotherTCUser
Member
Member


Joined: 14 Oct 2008
Posts: 149

PostPosted: Wed Jun 02, 2010 7:22 am    Post subject: tc seems to 'forget' high-dword of dir-size in a wfx Reply with quote

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
Back to top
View user's profile Send private message
ghisler(Author)
Site Admin
Site Admin


Joined: 04 Feb 2003
Posts: 34726
Location: Switzerland

PostPosted: Wed Jun 02, 2010 3:32 pm    Post subject: Reply with quote

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:
  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
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Total Commander Forum Index -> TC7.5x(a) final bug reports (English) All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Impressum: This site is maintained by Ghisler Software GmbH

Using phpBB © 2001-2005 phpBB Group