diff options
author | midipix <writeonce@midipix.org> | 2016-12-01 07:59:15 -0500 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2016-12-01 08:00:30 -0500 |
commit | 234d23d13af110517ce9e386eb2389ab1a1c1d85 (patch) | |
tree | 8540cb20903cb6f93210256af830ec8457f02c66 /src | |
parent | 901664123d8a653173953ba5d48a56fdaf3dc351 (diff) | |
download | pemagine-234d23d13af110517ce9e386eb2389ab1a1c1d85.tar.bz2 pemagine-234d23d13af110517ce9e386eb2389ab1a1c1d85.tar.xz |
struct pe_raw_sec_hdr: member name normalization.
Diffstat (limited to 'src')
-rw-r--r-- | src/headers/pe_get_image_section_tbl_addr.c | 2 |
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 92a2f78..98420de 100644 --- a/src/headers/pe_get_image_section_tbl_addr.c +++ b/src/headers/pe_get_image_section_tbl_addr.c @@ -61,7 +61,7 @@ struct pe_raw_sec_hdr * pe_get_image_named_section_addr(const void * base, const ch[pos] = name[pos]; for (; count; hdr++,count--) - if (*(uint64_t *)hdr->name == sname) + if (*(uint64_t *)hdr->sh_name == sname) return hdr; } |