From b2972947ca7ae4c5968d2ac18cdb9da836f7f0ed Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Thu, 7 Dec 2006 18:01:29 +0100 Subject: [PATCH] winedump: Print sizes and offsets in hex. --- tools/winedump/pe.c | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/tools/winedump/pe.c b/tools/winedump/pe.c index e9ec8f8860..9c25af1dff 100644 --- a/tools/winedump/pe.c +++ b/tools/winedump/pe.c @@ -217,7 +217,7 @@ static inline void print_datadirectory(DWORD n, const IMAGE_DATA_DIRECTORY *dire for (i = 0; i < n && i < 16; i++) { - printf(" %-12s rva: 0x%-8X size: %8u\n", + printf(" %-12s rva: 0x%-8x size: 0x%-8x\n", DirectoryNames[i], directory[i].VirtualAddress, directory[i].Size); } @@ -372,12 +372,11 @@ static void dump_pe_header(void) void dump_section(const IMAGE_SECTION_HEADER *sectHead) { - printf(" %-8.8s VirtSize: %-8u VirtAddr: %-8u 0x%08x\n", - sectHead->Name, sectHead->Misc.VirtualSize, sectHead->VirtualAddress, - sectHead->VirtualAddress); - printf(" raw data offs: %-8u raw data size: %-8u\n", + printf(" %-8.8s VirtSize: 0x%08x VirtAddr: 0x%08x\n", + sectHead->Name, sectHead->Misc.VirtualSize, sectHead->VirtualAddress); + printf(" raw data offs: 0x%08x raw data size: 0x%08x\n", sectHead->PointerToRawData, sectHead->SizeOfRawData); - printf(" relocation offs: %-8u relocations: %-8u\n", + printf(" relocation offs: 0x%08x relocations: 0x%08x\n", sectHead->PointerToRelocations, sectHead->NumberOfRelocations); printf(" line # offs: %-8u line #'s: %-8u\n", sectHead->PointerToLinenumbers, sectHead->NumberOfLinenumbers); -- 2.32.0.93.g670b81a890