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)
}
break;
case REG_DWORD:
assert(data_size == sizeof(DWORD));
assert(data_size == sizeof(DWORD) || !data_size);
if (data_size)
printf("dword:%08x", *(unsigned int *)data);
else
printf("hex(4):");
break;
case REG_MULTI_SZ:
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