summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2017-02-04 08:32:07 -0500
committermidipix <writeonce@midipix.org>2017-02-04 08:32:07 -0500
commit02863d5d32f2f3693d3e0fbcfa325e65420717cd (patch)
treebaff97b401ce5b75640b9e41bc40e4c4d3cfff55 /src
parent8bf8b6bb6a1866d8a2cac15c745cbe6fdb04e63c (diff)
downloadpemagine-02863d5d32f2f3693d3e0fbcfa325e65420717cd.tar.bz2
pemagine-02863d5d32f2f3693d3e0fbcfa325e65420717cd.tar.xz
raw data: renamed struct pe_raw_coff_file_hdr --> struct pe_raw_coff_image_hdr.
Diffstat (limited to 'src')
-rw-r--r--src/headers/pe_get_image_coff_hdr_addr.c6
-rw-r--r--src/headers/pe_get_image_opt_hdr_addr.c2
-rw-r--r--src/headers/pe_get_image_section_tbl_addr.c4
3 files changed, 6 insertions, 6 deletions
diff --git a/src/headers/pe_get_image_coff_hdr_addr.c b/src/headers/pe_get_image_coff_hdr_addr.c
index a4d6711..baceba3 100644
--- a/src/headers/pe_get_image_coff_hdr_addr.c
+++ b/src/headers/pe_get_image_coff_hdr_addr.c
@@ -10,17 +10,17 @@
#include <pemagine/pemagine.h>
-struct pe_raw_coff_file_hdr * pe_get_image_coff_hdr_addr(const void * base)
+struct pe_raw_coff_image_hdr * pe_get_image_coff_hdr_addr(const void * base)
{
struct pe_raw_image_dos_hdr * dos;
- struct pe_raw_coff_file_hdr * coff;
+ struct pe_raw_coff_image_hdr * coff;
uint32_t * offset;
if (!(dos = pe_get_image_dos_hdr_addr(base)))
return 0;
offset = (uint32_t *)(dos->dos_lfanew);
- coff = (struct pe_raw_coff_file_hdr *)pe_va_from_rva(base,*offset);
+ coff = (struct pe_raw_coff_image_hdr *)pe_va_from_rva(base,*offset);
return ((coff->cfh_signature[0] == 'P')
&& (coff->cfh_signature[1] == 'E')
diff --git a/src/headers/pe_get_image_opt_hdr_addr.c b/src/headers/pe_get_image_opt_hdr_addr.c
index 9333f8c..7bfa8fe 100644
--- a/src/headers/pe_get_image_opt_hdr_addr.c
+++ b/src/headers/pe_get_image_opt_hdr_addr.c
@@ -11,7 +11,7 @@
pe_api
union pe_raw_opt_hdr * pe_get_image_opt_hdr_addr(const void * base)
{
- struct pe_raw_coff_file_hdr * coff;
+ struct pe_raw_coff_image_hdr * coff;
void * addr;
if (!(coff = pe_get_image_coff_hdr_addr(base)))
diff --git a/src/headers/pe_get_image_section_tbl_addr.c b/src/headers/pe_get_image_section_tbl_addr.c
index f5a7054..87ec39c 100644
--- a/src/headers/pe_get_image_section_tbl_addr.c
+++ b/src/headers/pe_get_image_section_tbl_addr.c
@@ -13,7 +13,7 @@
struct pe_raw_sec_hdr * pe_get_image_section_tbl_addr(const void * base)
{
- struct pe_raw_coff_file_hdr * coff;
+ struct pe_raw_coff_image_hdr * coff;
union pe_raw_opt_hdr * opt;
unsigned char * mark;
@@ -35,7 +35,7 @@ struct pe_raw_sec_hdr * pe_get_image_named_section_addr(const void * base, const
{
uint16_t count;
struct pe_raw_sec_hdr * hdr;
- struct pe_raw_coff_file_hdr * coff;
+ struct pe_raw_coff_image_hdr * coff;
char * ch;
size_t len;
uint32_t pos;