ReadHeader error values

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

Moderators: Hacker, petermad, Stefan2, white

Post Reply
User avatar
Lefteous
Power Member
Power Member
Posts: 9536
Joined: 2003-02-09, 01:18 UTC
Location: Germany
Contact:

ReadHeader error values

Post by *Lefteous »

The packer plug-in API docu wrote:If an error occurs, ReadHeader should return one of the error values or 0 for no error.
It doesn't seem to make a difference which value different from 0 is returned. In all cases it behaves like E_END_ARCHIVE (empty archive) and no error message is displayed (opened in normal file panel not in search).
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50421
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Indeed no error is reported at this time, so TC can open also damaged or partial archives. I still recommend to return the appropriate error values.
Author of Total Commander
https://www.ghisler.com
User avatar
Lefteous
Power Member
Power Member
Posts: 9536
Joined: 2003-02-09, 01:18 UTC
Location: Germany
Contact:

Post by *Lefteous »

2ghisler(Author)
OK will do! :-)
Post Reply