genidl: Fix detecting of 32-bit and 64-bit PE binaries

Whether PE binary is 32-bit or 64-bit depends on OptionalHeader's Magic
which is 0x10b for 32-bit and 0x20b for 64-bit.

SizeOfOptionalHeader is not constant, it has just minimal value.

Signed-off-by: Martin Storsjö <martin@martin.st>
2 files changed