1
0
mirror of https://github.com/upx/upx synced 2025-10-05 19:20:23 +08:00

Small cosmetic changes.

committer: mfx <mfx> 1142302586 +0000
This commit is contained in:
Markus F.X.J. Oberhumer 2006-03-14 02:16:26 +00:00
parent df04e8183d
commit a4d79d7375
2 changed files with 9 additions and 8 deletions

View File

@ -1564,11 +1564,12 @@ void PackArmPe::pack(OutputFile *fo)
// check the PE header
// FIXME: add more checks
if (!opt->force && (
ih.opthdrsize != 0xE0
|| (ih.flags & EXECUTABLE) == 0
|| ih.subsystem != 9
(ih.cpu != 0x1c0)
|| (ih.opthdrsize != 0xe0)
|| ((ih.flags & EXECUTABLE) == 0)
|| (ih.subsystem != 9)
|| (ih.entry == 0 && !isdll)
|| ih.ddirsentries != 16
|| (ih.ddirsentries != 16)
// || IDSIZE(PEDIR_EXCEPTION) // is this used on arm?
// || IDSIZE(PEDIR_COPYRIGHT)
))

View File

@ -1676,12 +1676,12 @@ void PackW32Pe::pack(OutputFile *fo)
// check the PE header
// FIXME: add more checks
if (!opt->force && (
ih.cpu < 0x14c || ih.cpu > 0x150
|| ih.opthdrsize != 0xE0
|| (ih.flags & EXECUTABLE) == 0
(ih.cpu < 0x14c || ih.cpu > 0x150)
|| (ih.opthdrsize != 0xe0)
|| ((ih.flags & EXECUTABLE) == 0)
|| (ih.subsystem != 2 && ih.subsystem != 3 && ih.subsystem != 1)
|| (ih.entry == 0 && !isdll)
|| ih.ddirsentries != 16
|| (ih.ddirsentries != 16)
|| IDSIZE(PEDIR_EXCEPTION) // is this used on i386?
// || IDSIZE(PEDIR_COPYRIGHT)
))