summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2016-11-19 15:19:11 -0500
committermidipix <writeonce@midipix.org>2016-11-19 15:19:11 -0500
commit283803f4dba1c92c6c7db18b6f3b46c0fa62e0ff (patch)
tree1aac34f8ac897f1e0bb9a99166bd739240148e49 /src
parent59dda176a9ae54404d3f8074c9226e981b638ab3 (diff)
downloadntapi-283803f4dba1c92c6c7db18b6f3b46c0fa62e0ff.tar.bz2
ntapi-283803f4dba1c92c6c7db18b6f3b46c0fa62e0ff.tar.xz
PE format: update code following libpemagine's pre-alpha API update.
Diffstat (limited to 'src')
-rw-r--r--src/hash/ntapi_tt_populate_hashed_import_table.c2
-rw-r--r--src/process/ntapi_tt_map_image_as_data.c8
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};