summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
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))) {