Cleaned up Packer::readPackHeader().

committer: mfx <mfx> 977342419 +0000
This commit is contained in:
Markus F.X.J. Oberhumer
2000-12-20 20:00:19 +00:00
parent 7d652fa42b
commit 1e1a078808
11 changed files with 41 additions and 32 deletions
+3 -2
View File
@@ -531,8 +531,9 @@ int PackExe::canUnpack()
{
if (!readFileHeader())
return false;
const off_t off = ih.headsize16*16;
bool b = readPackHeader(128, off);
const off_t off = ih.headsize16 * 16;
fi->seek(off, SEEK_SET);
bool b = readPackHeader(128);
return b && (off + (off_t) ph.c_len <= file_size);
}