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
@@ -740,12 +740,12 @@ void PackWcle::decodeEntryTable()
}
bool PackWcle::canUnpack()
int PackWcle::canUnpack()
{
if (!LeFile::readFileHeader())
return false;
// FIXME: 1024 could be too large for some files
return super::readPackHeader(1024, ih.data_pages_offset+exe_offset);
return readPackHeader(1024, ih.data_pages_offset+exe_offset) ? 1 : -1;
}