Commit d7aaf514 authored by Piotr Caban's avatar Piotr Caban Committed by Alexandre Julliard

winedump: Fix REG_DWORD dumping with no data.

parent 753875e8
...@@ -279,8 +279,11 @@ static BOOL dump_value(unsigned int hive_off, unsigned int off) ...@@ -279,8 +279,11 @@ static BOOL dump_value(unsigned int hive_off, unsigned int off)
} }
break; break;
case REG_DWORD: case REG_DWORD:
assert(data_size == sizeof(DWORD)); assert(data_size == sizeof(DWORD) || !data_size);
if (data_size)
printf("dword:%08x", *(unsigned int *)data); printf("dword:%08x", *(unsigned int *)data);
else
printf("hex(4):");
break; break;
case REG_MULTI_SZ: case REG_MULTI_SZ:
printf("str(7):\""); printf("str(7):\"");
......
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