From 283803f4dba1c92c6c7db18b6f3b46c0fa62e0ff Mon Sep 17 00:00:00 2001 From: midipix Date: Sat, 19 Nov 2016 15:19:11 -0500 Subject: PE format: update code following libpemagine's pre-alpha API update. --- src/hash/ntapi_tt_populate_hashed_import_table.c | 2 +- src/process/ntapi_tt_map_image_as_data.c | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/hash/ntapi_tt_populate_hashed_import_table.c b/src/hash/ntapi_tt_populate_hashed_import_table.c index 4275297..9992f81 100644 --- a/src/hash/ntapi_tt_populate_hashed_import_table.c +++ b/src/hash/ntapi_tt_populate_hashed_import_table.c @@ -20,7 +20,7 @@ struct callback_ctx { static int __process_exported_symbol( const void * base, - struct pe_export_hdr * exp_hdr, + struct pe_raw_export_hdr * exp_hdr, struct pe_export_sym * exp_item, enum pe_callback_reason reason, void * context) diff --git a/src/process/ntapi_tt_map_image_as_data.c b/src/process/ntapi_tt_map_image_as_data.c index 62a7f69..d7171e4 100644 --- a/src/process/ntapi_tt_map_image_as_data.c +++ b/src/process/ntapi_tt_map_image_as_data.c @@ -50,10 +50,10 @@ int32_t __stdcall __ntapi_tt_exec_map_image_as_data(nt_executable_image * image) void * base; void * hsection; - struct pe_image_dos_hdr * dos; - struct pe_coff_file_hdr * coff; - union pe_opt_hdr * opt; - struct pe_sec_hdr * sec; + struct pe_raw_image_dos_hdr * dos; + struct pe_raw_coff_file_hdr * coff; + union pe_raw_opt_hdr * opt; + struct pe_raw_sec_hdr * sec; nt_oa oa = {sizeof(oa), 0,0,0,0,(nt_sqos *)&sqos}; -- cgit v1.2.3