Packer::canUnpack() now can return -1.

committer: mfx <mfx> 962126554 +0000
This commit is contained in:
Markus F.X.J. Oberhumer
2000-06-27 17:22:34 +00:00
parent 87a1b66847
commit 51c6566092
24 changed files with 109 additions and 56 deletions
+2 -2
View File
@@ -368,13 +368,13 @@ void PackDjgpp2::pack(OutputFile *fo)
//
**************************************************************************/
bool PackDjgpp2::canUnpack()
int PackDjgpp2::canUnpack()
{
if (!readFileHeader())
return false;
if (is_dlm(fi,coff_offset))
throwCantUnpack("can't handle DLM");
return readPackHeader(1024, coff_offset);
return readPackHeader(1024, coff_offset) ? 1 : -1;
}