commit | b4020af78908890964db240e1e9b9bdb7b2c65c4 | [log] [tgz] |
---|---|---|
author | Pali Rohár <pali.rohar@gmail.com> | Sun May 04 23:06:08 2025 +0200 |
committer | Martin Storsjö <martin@martin.st> | Tue May 06 20:21:55 2025 +0300 |
tree | 9d01dd9066e1500fa47c430d33eca1bb39af69b4 | |
parent | 736de13d07acde2af5953953a11fec2756dbc949 [diff] |
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>