summaryrefslogtreecommitdiffhomepage
path: root/src/headers
diff options
context:
space:
mode:
Diffstat (limited to 'src/headers')
-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;