summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2016-11-19 14:49:53 -0500
committermidipix <writeonce@midipix.org>2016-11-19 14:49:53 -0500
commitfad23f9ed823120339761ffd251f2b1b2c3b2e45 (patch)
tree5c3d7cd2ff06b0b419cd04285889b65020c93818 /src
parent945985cb313ada34d002423fbedfdebebcd22edc (diff)
downloadpemagine-fad23f9ed823120339761ffd251f2b1b2c3b2e45.tar.bz2
pemagine-fad23f9ed823120339761ffd251f2b1b2c3b2e45.tar.xz
PE format: union pe_opt_hdr [and friends] --> union pe_raw_opt_hdr.
Diffstat (limited to 'src')
-rw-r--r--src/headers/pe_get_image_data_dirs_addr.c2
-rw-r--r--src/headers/pe_get_image_entry_point_addr.c2
-rw-r--r--src/headers/pe_get_image_opt_hdr_addr.c4
-rw-r--r--src/headers/pe_get_image_section_tbl_addr.c2
-rw-r--r--src/meta/pe_get_image_stack_heap_info.c2
5 files changed, 6 insertions, 6 deletions
diff --git a/src/headers/pe_get_image_data_dirs_addr.c b/src/headers/pe_get_image_data_dirs_addr.c
index d0167c0..1edbdd3 100644
--- a/src/headers/pe_get_image_data_dirs_addr.c
+++ b/src/headers/pe_get_image_data_dirs_addr.c
@@ -13,7 +13,7 @@ pe_api
struct pe_data_dirs * pe_get_image_data_dirs_addr(const void * base)
{
uint16_t * magic;
- union pe_opt_hdr * hdr;
+ union pe_raw_opt_hdr * hdr;
if (!(hdr = pe_get_image_opt_hdr_addr(base)))
return 0;
diff --git a/src/headers/pe_get_image_entry_point_addr.c b/src/headers/pe_get_image_entry_point_addr.c
index 5869633..6f7bc90 100644
--- a/src/headers/pe_get_image_entry_point_addr.c
+++ b/src/headers/pe_get_image_entry_point_addr.c
@@ -14,7 +14,7 @@ pe_api
void * pe_get_image_entry_point_addr(const void * base)
{
uint16_t * magic;
- union pe_opt_hdr * hdr;
+ union pe_raw_opt_hdr * hdr;
uint32_t * rva;
if (!(hdr = pe_get_image_opt_hdr_addr(base)))
diff --git a/src/headers/pe_get_image_opt_hdr_addr.c b/src/headers/pe_get_image_opt_hdr_addr.c
index df3ec63..d784aed 100644
--- a/src/headers/pe_get_image_opt_hdr_addr.c
+++ b/src/headers/pe_get_image_opt_hdr_addr.c
@@ -9,12 +9,12 @@
#include <pemagine/pemagine.h>
pe_api
-union pe_opt_hdr * pe_get_image_opt_hdr_addr(const void * base)
+union pe_raw_opt_hdr * pe_get_image_opt_hdr_addr(const void * base)
{
struct pe_raw_coff_file_hdr * coff;
if (!(coff = pe_get_image_coff_hdr_addr(base)))
return 0;
else
- return (union pe_opt_hdr *)pe_va_from_rva(coff, sizeof(*coff));
+ return (union pe_raw_opt_hdr *)pe_va_from_rva(coff, sizeof(*coff));
}
diff --git a/src/headers/pe_get_image_section_tbl_addr.c b/src/headers/pe_get_image_section_tbl_addr.c
index 52e24d0..bbab5a2 100644
--- a/src/headers/pe_get_image_section_tbl_addr.c
+++ b/src/headers/pe_get_image_section_tbl_addr.c
@@ -14,7 +14,7 @@ pe_api
struct pe_sec_hdr * pe_get_image_section_tbl_addr (const void * base)
{
struct pe_raw_coff_file_hdr * coff;
- union pe_opt_hdr * opt;
+ union pe_raw_opt_hdr * opt;
if (!(coff = pe_get_image_coff_hdr_addr(base)))
return 0;
diff --git a/src/meta/pe_get_image_stack_heap_info.c b/src/meta/pe_get_image_stack_heap_info.c
index ec1aba9..922682d 100644
--- a/src/meta/pe_get_image_stack_heap_info.c
+++ b/src/meta/pe_get_image_stack_heap_info.c
@@ -13,7 +13,7 @@ pe_api
int pe_get_image_stack_heap_info(const void * base, struct pe_stack_heap_info * stack_heap_info)
{
uint16_t * magic;
- union pe_opt_hdr * hdr;
+ union pe_raw_opt_hdr * hdr;
if (!(hdr = pe_get_image_opt_hdr_addr(base)))
return 0;