move magic check to PE layer

This commit is contained in:
Nikita Smith
2025-02-25 14:41:15 -08:00
parent 33326a8fa6
commit 8d9f85bfcc
5 changed files with 17 additions and 11 deletions
+1 -1
View File
@@ -269,7 +269,7 @@ entry_point(CmdLine *cmdline)
coff_print_big_obj(arena, out, indent, raw_data, opts);
} else if (coff_is_obj(raw_data)) {
coff_print_obj(arena, out, indent, raw_data, opts);
} else if (rd_is_pe(raw_data)) {
} else if (pe_check_magic(raw_data)) {
RDI_Parsed *rdi = 0;
if (!(opts & RD_Option_NoRdi)) {
rdi = rd_rdi_from_pe(arena, file_path, raw_data);