false copy with ext4plugin

Discuss and announce Total Commander plugins, addons and other useful tools here, both their usage and their development.

Moderators: Hacker, petermad, Stefan2, white

iana
Senior Member
Senior Member
Posts: 345
Joined: 2010-07-27, 22:00 UTC

Post by *iana »

Even 32-bit Windows have 64-bit file API
No as this dll works in old Windowses 2k and XP, I think there is a 32bit bug in this plugin not related to the compiler, 32bit applications with PAE can use 34bit addresses so in theory they can support up to 64GiB and this is blocked in Windows as they'd prefer to sell a 64 bit version instead of offering better big file support for 32 bit apps,
this dll needs to be debugged, but the author seams to have dropped it's support.

I just did a quick review of the source and the author uses int32 a lot for defining, maybe someone with better skills can tweak the source and replace __int32 with long long (__int64)?
Sob
Power Member
Power Member
Posts: 945
Joined: 2005-01-19, 17:33 UTC

Post by *Sob »

It looks like you're mixing together files with addressable memory. It's true that 32-bit OS can't address more than 4GB and it can be solved by PAE. But that has nothing to do with files.

You can have 20GB file in Windows 2000 (on NTFS partition) and it's possible to work with it just fine. You just can't map it in memory. And some older programs may have problems with it, but it's their fault.
iana
Senior Member
Senior Member
Posts: 345
Joined: 2010-07-27, 22:00 UTC

Post by *iana »

@Sob you're right, I was wrong, the problem seams to be with a wrong file type used, as the plugin works with files under 2Gib I think the author used a signed int32 instead of a signed int64.
It is a nice plugin and I use it on occasion, As it is GPL-ed maybe one of the C++ devs can take a look at it, I'm not a C/C++ developer I've only had a course in standard pascal years ago, and while I was good at it I've forgot most of it.
Post Reply