927305 struct pe_raw_data_dirs: member name normalization.

Authored and Committed by midipix 8 years ago
    struct pe_raw_data_dirs: member name normalization.
    
        
file modified
+17 -17
include/pemagine/pe_structs.h CHANGED
@@ -99,23 +99,23 @@ struct pe_raw_opt_hdr_dirs {
99
99
};
100
100
101
101
struct pe_raw_data_dirs {
102
- unsigned char rva_and_sizes [0x04];
103
- unsigned char export_tbl [0x08];
104
- unsigned char import_tbl [0x08];
105
- unsigned char resource_tbl [0x08];
106
- unsigned char exception_tbl [0x08];
107
- unsigned char certificate_tbl [0x08];
108
- unsigned char base_reloc_tbl [0x08];
109
- unsigned char debug [0x08];
110
- unsigned char arch [0x08];
111
- unsigned char global_ptr [0x08];
112
- unsigned char tls_tbl [0x08];
113
- unsigned char load_config_tbl [0x08];
114
- unsigned char bound_import [0x08];
115
- unsigned char iat [0x08];
116
- unsigned char delay_import_descriptor [0x08];
117
- unsigned char clr_runtime_hdr [0x08];
118
- unsigned char reserved [0x08];
102
+ unsigned char coh_rva_and_sizes [0x04];
103
+ unsigned char coh_export_tbl [0x08];
104
+ unsigned char coh_import_tbl [0x08];
105
+ unsigned char coh_resource_tbl [0x08];
106
+ unsigned char coh_exception_tbl [0x08];
107
+ unsigned char coh_certificate_tbl [0x08];
108
+ unsigned char coh_base_reloc_tbl [0x08];
109
+ unsigned char coh_debug [0x08];
110
+ unsigned char coh_arch [0x08];
111
+ unsigned char coh_global_ptr [0x08];
112
+ unsigned char coh_tls_tbl [0x08];
113
+ unsigned char coh_load_config_tbl [0x08];
114
+ unsigned char coh_bound_import [0x08];
115
+ unsigned char coh_iat [0x08];
116
+ unsigned char coh_delay_import_descriptor [0x08];
117
+ unsigned char coh_clr_runtime_hdr [0x08];
118
+ unsigned char coh_reserved [0x08];
119
119
};
120
120
121
121
struct pe_raw_opt_hdr_32 {
src/headers/pe_get_image_special_hdr_addr.c CHANGED
@@ -20,12 +20,12 @@ void * pe_get_image_special_hdr_addr(const void * base, uint32_t ordinal, uint32
20
20
if (!(dirs = pe_get_image_data_dirs_addr(base)))
21
21
return 0;
22
22
23
- count = (uint32_t *)dirs->rva_and_sizes;
23
+ count = (uint32_t *)dirs->coh_rva_and_sizes;
24
24
25
25
if (*count < (ordinal+1))
26
26
return 0;
27
27
28
- dir = (struct pe_block *)dirs->export_tbl;
28
+ dir = (struct pe_block *)dirs->coh_export_tbl;
29
29
dir += ordinal;
30
30
31
31
if (sec_size)