Skip to content

Commit

Permalink
dumper: slightly pretty up rich header display
Browse files Browse the repository at this point in the history
  • Loading branch information
dd86k committed Sep 29, 2024
1 parent d921e66 commit e08034b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions dumper/format/pe.d
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ import adbg.utils.uid, adbg.utils.bit;
import adbg.error;
import core.stdc.stdlib;
import core.stdc.string : strncmp;
import core.stdc.stdio : snprintf;
import dumper;
import common.errormgmt;

Expand Down Expand Up @@ -236,9 +237,10 @@ void dump_pe_richhdr(adbg_object_t *o) {

print_header("Rich Header");
for (size_t i; i < rich.itemcount; ++i) with (rich.items[i]) {
print_x16("buildId", buildId);
char[32] b = void;
snprintf(b.ptr, 32, "count=%u", count);
print_u16("buildId", buildId, b.ptr);
print_x16("prodId", prodId, adbg_object_pe_rich_prodid_string(prodId));
print_u32("count", count);
}
}

Expand Down

0 comments on commit e08034b

Please sign in to comment.