Some cleanups.

committer: mfx <mfx> 962208107 +0000
This commit is contained in:
Markus F.X.J. Oberhumer
2000-06-28 16:01:47 +00:00
parent 51c6566092
commit 3980081a5a
5 changed files with 39 additions and 22 deletions
+1 -1
View File
@@ -499,7 +499,7 @@ int PackTos::canUnpack()
// check header as set by packer
if ((ih.fh_text & 3) != 0 || (ih.fh_data & 3) != 0 || (ih.fh_bss & 3) != 0
|| ih.fh_sym != 0 || ih.fh_reserved != 0 || ih.fh_reloc > 1)
throwCantUnpack("file damaged");
throwCantUnpack("program header damaged");
if (!checkFileHeader())
throwCantUnpack("unsupported header flags");
return true;