diff options
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; } |