summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2016-11-19 15:09:44 -0500
committermidipix <writeonce@midipix.org>2016-11-19 15:09:44 -0500
commit50453626fa082d49c5e7cd94d6d90e84fc74f781 (patch)
tree00ddd20b06bb2cd68b5ab2a343ab8a6b623c306c /src
parent9e3ad969595768bd1a0d4f22dd433ea9e92f0b15 (diff)
downloadpemagine-50453626fa082d49c5e7cd94d6d90e84fc74f781.tar.bz2
pemagine-50453626fa082d49c5e7cd94d6d90e84fc74f781.tar.xz
PE format: struct pe_import_hdr [and friends] --> struct pe_raw_import_hdr.
Diffstat (limited to 'src')
-rw-r--r--src/headers/pe_get_image_special_hdr_addr.c4
-rw-r--r--src/imports/pe_enum_image_import_hdrs.c2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/headers/pe_get_image_special_hdr_addr.c b/src/headers/pe_get_image_special_hdr_addr.c
index dc1e6b0..44caae7 100644
--- a/src/headers/pe_get_image_special_hdr_addr.c
+++ b/src/headers/pe_get_image_special_hdr_addr.c
@@ -43,7 +43,7 @@ struct pe_raw_export_hdr * pe_get_image_export_hdr_addr(const void * base, uint3
}
pe_api
-struct pe_import_hdr * pe_get_image_import_dir_addr(const void * base, uint32_t * sec_size)
+struct pe_raw_import_hdr * pe_get_image_import_dir_addr(const void * base, uint32_t * sec_size)
{
- return (struct pe_import_hdr *)pe_get_image_special_hdr_addr(base,PE_IMAGE_DATA_DIR_ORDINAL_IMPORT,sec_size);
+ return (struct pe_raw_import_hdr *)pe_get_image_special_hdr_addr(base,PE_IMAGE_DATA_DIR_ORDINAL_IMPORT,sec_size);
}
diff --git a/src/imports/pe_enum_image_import_hdrs.c b/src/imports/pe_enum_image_import_hdrs.c
index 0a1a10e..582a8d2 100644
--- a/src/imports/pe_enum_image_import_hdrs.c
+++ b/src/imports/pe_enum_image_import_hdrs.c
@@ -14,7 +14,7 @@ int pe_enum_image_import_hdrs(
pe_enum_image_import_hdrs_callback * callback,
void * ctx)
{
- struct pe_import_hdr * imp_hdr;
+ struct pe_raw_import_hdr*imp_hdr;
int ret;
if (!(imp_hdr = pe_get_image_import_dir_addr(base,0))) {