Commit 9723142c authored by Dmitry Timoshkov's avatar Dmitry Timoshkov Committed by Alexandre Julliard

winedump: Add print_string() helper.

parent 597b1804
...@@ -517,11 +517,17 @@ static BOOL dump_msft_namehashtab(seg_t *seg) ...@@ -517,11 +517,17 @@ static BOOL dump_msft_namehashtab(seg_t *seg)
return TRUE; return TRUE;
} }
static void dump_string(int len, int align_off) static void print_string(int len)
{ {
printf("\""); printf("\"");
fwrite(tlb_read(len), len, 1, stdout); fwrite(tlb_read(len), len, 1, stdout);
printf("\" "); printf("\"");
}
static void dump_string(int len, int align_off)
{
print_string(len);
printf(" ");
while((len++ + align_off) & 3) while((len++ + align_off) & 3)
printf("\\%2.2x", tlb_read_byte()); printf("\\%2.2x", tlb_read_byte());
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment