Quick fix

This commit is contained in:
Jeremy 2024-05-22 23:41:34 -05:00
parent 2e58ac2260
commit 7bf4cf8b53
No known key found for this signature in database
GPG Key ID: 19AA8270105E8EB4

View File

@ -69,7 +69,7 @@ namespace detail {
WORD optional_header_magic = pe_byteswap_if_needed(optional_header_magic_raw.unwrap_value());
VERIFY(
optional_header_magic == IMAGE_NT_OPTIONAL_HDR_MAGIC,
"PE file does not match expected bit-mode " + object_path
("PE file does not match expected bit-mode " + object_path).c_str()
);
// finally get image base
if(optional_header_magic == IMAGE_NT_OPTIONAL_HDR32_MAGIC) {