If DeleteFiles() returns E_BAD_DATA, TC prints "CRC error".
If DeleteFiles() returns E_BAD_ARCHIVE, TC prints "Error in archive file".
I suppose it must be vice versa.
Same is for PackFiles(). But I didn't test all the functions. Dear TC author, could you please review return code handling routines for every function?
Packer plugins: incorrect return code handling.
Moderators: Hacker, petermad, Stefan2, white
- fenix_productions
- Power Member
- Posts: 1979
- Joined: 2005-08-07, 13:23 UTC
- Location: Poland
- Contact:
2Eugene
According to wcxhead.h file from SDK, you seem to be right:
According to wcxhead.h file from SDK, you seem to be right:
Code: Select all
#define E_BAD_DATA 12 /* Data is bad */
#define E_BAD_ARCHIVE 13 /* CRC error in archive data */
"When we created the poke, we thought it would be cool to have a feature without any specific purpose." Facebook...
#128099
#128099
- ghisler(Author)
- Site Admin
- Posts: 50475
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Seems that the documentation isn't very clear here. The documentation is mainly meant for the pack process, not the delete process.
For deleting, the meaning is:
E_BAD_DATA: The archive could be opened OK, but some bad data was encountered during the delete process.
E_BAD_ARCHIVE: The archive as a whole is bad, and cannot be modified.
For deleting, the meaning is:
E_BAD_DATA: The archive could be opened OK, but some bad data was encountered during the delete process.
E_BAD_ARCHIVE: The archive as a whole is bad, and cannot be modified.
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
If PackFiles() returns E_BAD_DATA, TC prints "CRC error".
If PackFiles() returns E_BAD_ARCHIVE, TC prints "Error in archive file".
So this documentation is not for packing purposes too.
If PackFiles() returns E_BAD_ARCHIVE, TC prints "Error in archive file".
Code: Select all
#define E_BAD_DATA 12 /* Data is bad */
#define E_BAD_ARCHIVE 13 /* CRC error in archive data */
- ghisler(Author)
- Site Admin
- Posts: 50475
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Strange, I will check that and update the docs if necessary.
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com