diff options
Diffstat (limited to 'src/output')
-rw-r--r-- | src/output/pe_output_image_sections.c | 2 | ||||
-rw-r--r-- | src/output/pe_output_image_strings.c | 4 | ||||
-rw-r--r-- | src/output/pe_output_image_symbols.c | 4 |
3 files changed, 5 insertions, 5 deletions
diff --git a/src/output/pe_output_image_sections.c b/src/output/pe_output_image_sections.c index b538cdf..67f0108 100644 --- a/src/output/pe_output_image_sections.c +++ b/src/output/pe_output_image_sections.c @@ -28,7 +28,7 @@ int pe_output_image_sections( dash = "- "; } - for (i=0; i<meta->coff.num_of_sections; i++) + for (i=0; i<meta->coff.cfh_num_of_sections; i++) if (fprintf(fout,"%s%s\n", dash, meta->sectbl[i].long_name diff --git a/src/output/pe_output_image_strings.c b/src/output/pe_output_image_strings.c index a2b16fa..b0555eb 100644 --- a/src/output/pe_output_image_strings.c +++ b/src/output/pe_output_image_strings.c @@ -33,9 +33,9 @@ int pe_output_image_strings( } mark = (char *)meta->image.addr; - mark += meta->coff.ptr_to_string_tbl; + mark += meta->coff.cfh_ptr_to_str_tbl; - cap = mark + meta->coff.size_of_string_tbl; + cap = mark + meta->coff.cfh_size_of_str_tbl; mark += sizeof(uint32_t); for (ch=mark; ch<cap; ) { diff --git a/src/output/pe_output_image_symbols.c b/src/output/pe_output_image_symbols.c index 3dc7eb3..7282436 100644 --- a/src/output/pe_output_image_symbols.c +++ b/src/output/pe_output_image_symbols.c @@ -34,9 +34,9 @@ int pe_output_image_symbols( } mark = (char *)meta->image.addr; - symtbl = (struct pe_raw_coff_symbol *)(mark + meta->coff.ptr_to_sym_tbl); + symtbl = (struct pe_raw_coff_symbol *)(mark + meta->coff.cfh_ptr_to_sym_tbl); - for (i=0; i<meta->coff.num_of_syms; i++) { + for (i=0; i<meta->coff.cfh_num_of_syms; i++) { pe_read_coff_symbol( &symtbl[i],&symrec, &meta->coff,meta->image.addr); |