Skip to content
Snippets Groups Projects
Commit d7aaf514 authored by Piotr Caban's avatar Piotr Caban Committed by Alexandre Julliard
Browse files

winedump: Fix REG_DWORD dumping with no data.

parent 753875e8
No related branches found
No related tags found
No related merge requests found
......@@ -279,8 +279,11 @@ static BOOL dump_value(unsigned int hive_off, unsigned int off)
}
break;
case REG_DWORD:
assert(data_size == sizeof(DWORD));
printf("dword:%08x", *(unsigned int *)data);
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):\"");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment