summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2016-11-19 14:54:20 -0500
committermidipix <writeonce@midipix.org>2016-11-19 14:54:20 -0500
commitfb643b72651055c924188fd22f1d24f5ec604fe0 (patch)
tree915b94583b6229c1428c0df2e330ec7a43699484 /src
parentb86f714da701cdbe4b2fe26faeb1b8e0b0c778d3 (diff)
downloadpemagine-fb643b72651055c924188fd22f1d24f5ec604fe0.tar.bz2
pemagine-fb643b72651055c924188fd22f1d24f5ec604fe0.tar.xz
PE format: struct pe_data_dirs --> struct pe_raw_data_dirs.
Diffstat (limited to 'src')
-rw-r--r--src/headers/pe_get_image_data_dirs_addr.c6
-rw-r--r--src/headers/pe_get_image_special_hdr_addr.c2
2 files changed, 4 insertions, 4 deletions
diff --git a/src/headers/pe_get_image_data_dirs_addr.c b/src/headers/pe_get_image_data_dirs_addr.c
index 1edbdd3..54bf6f3 100644
--- a/src/headers/pe_get_image_data_dirs_addr.c
+++ b/src/headers/pe_get_image_data_dirs_addr.c
@@ -10,7 +10,7 @@
#include <pemagine/pemagine.h>
pe_api
-struct pe_data_dirs * pe_get_image_data_dirs_addr(const void * base)
+struct pe_raw_data_dirs * pe_get_image_data_dirs_addr(const void * base)
{
uint16_t * magic;
union pe_raw_opt_hdr * hdr;
@@ -22,10 +22,10 @@ struct pe_data_dirs * pe_get_image_data_dirs_addr(const void * base)
switch (*magic) {
case PE_MAGIC_PE32:
- return (struct pe_data_dirs *)hdr->opt_hdr_32.rva_and_sizes;
+ return (struct pe_raw_data_dirs *)hdr->opt_hdr_32.rva_and_sizes;
case PE_MAGIC_PE32_PLUS:
- return (struct pe_data_dirs *)hdr->opt_hdr_64.rva_and_sizes;
+ return (struct pe_raw_data_dirs *)hdr->opt_hdr_64.rva_and_sizes;
default:
return 0;
diff --git a/src/headers/pe_get_image_special_hdr_addr.c b/src/headers/pe_get_image_special_hdr_addr.c
index 276ec9f..9788099 100644
--- a/src/headers/pe_get_image_special_hdr_addr.c
+++ b/src/headers/pe_get_image_special_hdr_addr.c
@@ -13,7 +13,7 @@
pe_api
void * pe_get_image_special_hdr_addr(const void * base, uint32_t ordinal, uint32_t * sec_size)
{
- struct pe_data_dirs * dirs;
+ struct pe_raw_data_dirs*dirs;
struct pe_block * dir;
uint32_t * count;