summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2016-11-19 14:59:36 -0500
committermidipix <writeonce@midipix.org>2016-11-19 14:59:36 -0500
commit9089cb43bd0082e5558374d5297e918a801533c3 (patch)
treecaa4823c0a491d5ab89e4215e2da6d1983f32cbf /src
parentfb643b72651055c924188fd22f1d24f5ec604fe0 (diff)
downloadpemagine-9089cb43bd0082e5558374d5297e918a801533c3.tar.bz2
pemagine-9089cb43bd0082e5558374d5297e918a801533c3.tar.xz
PE format: struct pe_sec_hdr --> struct pe_raw_sec_hdr.
Diffstat (limited to 'src')
-rw-r--r--src/headers/pe_get_image_section_tbl_addr.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/headers/pe_get_image_section_tbl_addr.c b/src/headers/pe_get_image_section_tbl_addr.c
index bbab5a2..3dad1f5 100644
--- a/src/headers/pe_get_image_section_tbl_addr.c
+++ b/src/headers/pe_get_image_section_tbl_addr.c
@@ -11,7 +11,7 @@
#include "pe_impl.h"
pe_api
-struct pe_sec_hdr * pe_get_image_section_tbl_addr (const void * base)
+struct pe_raw_sec_hdr * pe_get_image_section_tbl_addr (const void * base)
{
struct pe_raw_coff_file_hdr * coff;
union pe_raw_opt_hdr * opt;
@@ -22,14 +22,14 @@ struct pe_sec_hdr * pe_get_image_section_tbl_addr (const void * base)
if (!(opt = pe_get_image_opt_hdr_addr(base)))
return 0;
- return (struct pe_sec_hdr *)((char *)opt + *(uint16_t *)coff->size_of_opt_hdr);
+ return (struct pe_raw_sec_hdr *)((char *)opt + *(uint16_t *)coff->size_of_opt_hdr);
}
pe_api
-struct pe_sec_hdr * pe_get_image_named_section_addr (const void * base, const char * name)
+struct pe_raw_sec_hdr * pe_get_image_named_section_addr (const void * base, const char * name)
{
uint16_t count;
- struct pe_sec_hdr * hdr;
+ struct pe_raw_sec_hdr * hdr;
struct pe_raw_coff_file_hdr*coff;
char * ch;
uint32_t len;