summaryrefslogtreecommitdiffhomepage
path: root/src/headers
diff options
context:
space:
mode:
Diffstat (limited to 'src/headers')
-rw-r--r--src/headers/pe_get_image_data_dirs_addr.c4
-rw-r--r--src/headers/pe_get_image_entry_point_addr.c4
-rw-r--r--src/headers/pe_get_image_section_tbl_addr.c2
3 files changed, 5 insertions, 5 deletions
diff --git a/src/headers/pe_get_image_data_dirs_addr.c b/src/headers/pe_get_image_data_dirs_addr.c
index aa55245..2edde04 100644
--- a/src/headers/pe_get_image_data_dirs_addr.c
+++ b/src/headers/pe_get_image_data_dirs_addr.c
@@ -22,10 +22,10 @@ struct pe_raw_data_dirs * pe_get_image_data_dirs_addr(const void * base)
switch (*magic) {
case PE_MAGIC_PE32:
- return (struct pe_raw_data_dirs *)hdr->opt_hdr_32.rva_and_sizes;
+ return (struct pe_raw_data_dirs *)hdr->opt_hdr_32.coh_rva_and_sizes;
case PE_MAGIC_PE32_PLUS:
- return (struct pe_raw_data_dirs *)hdr->opt_hdr_64.rva_and_sizes;
+ return (struct pe_raw_data_dirs *)hdr->opt_hdr_64.coh_rva_and_sizes;
default:
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 d0b222a..9e197b8 100644
--- a/src/headers/pe_get_image_entry_point_addr.c
+++ b/src/headers/pe_get_image_entry_point_addr.c
@@ -23,11 +23,11 @@ void * pe_get_image_entry_point_addr(const void * base)
switch (*magic) {
case PE_MAGIC_PE32:
- rva = (uint32_t *)hdr->opt_hdr_32.entry_point;
+ rva = (uint32_t *)hdr->opt_hdr_32.coh_entry_point;
break;
case PE_MAGIC_PE32_PLUS:
- rva = (uint32_t *)hdr->opt_hdr_64.entry_point;
+ rva = (uint32_t *)hdr->opt_hdr_64.coh_entry_point;
break;
default:
diff --git a/src/headers/pe_get_image_section_tbl_addr.c b/src/headers/pe_get_image_section_tbl_addr.c
index 3eb8188..92a2f78 100644
--- a/src/headers/pe_get_image_section_tbl_addr.c
+++ b/src/headers/pe_get_image_section_tbl_addr.c
@@ -23,7 +23,7 @@ struct pe_raw_sec_hdr * pe_get_image_section_tbl_addr(const void * base)
if (!(opt = pe_get_image_opt_hdr_addr(base)))
return 0;
- mark = opt->opt_hdr_32.magic;
+ mark = opt->opt_hdr_32.coh_magic;
mark += coff->cfh_size_of_opt_hdr[1] << 8;
mark += coff->cfh_size_of_opt_hdr[0];