summaryrefslogtreecommitdiffhomepage
path: root/src/headers/pe_get_image_section_tbl_addr.c
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2016-12-01 06:12:09 -0500
committermidipix <writeonce@midipix.org>2016-12-01 08:00:30 -0500
commit6e18ffe43809e43af86bbad8f46fcb1a428cb12a (patch)
treeb76530b4fce355bb0520b2a918887d53502e40ce /src/headers/pe_get_image_section_tbl_addr.c
parent9273055ccc18c5815e6f74c7adbac0bff1c2f7ae (diff)
downloadpemagine-6e18ffe43809e43af86bbad8f46fcb1a428cb12a.tar.bz2
pemagine-6e18ffe43809e43af86bbad8f46fcb1a428cb12a.tar.xz
struct pe_raw_opt_hdr_{32|64}: member name normalization.
Diffstat (limited to 'src/headers/pe_get_image_section_tbl_addr.c')
-rw-r--r--src/headers/pe_get_image_section_tbl_addr.c2
1 files changed, 1 insertions, 1 deletions
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];