mirror of
git://source.winehq.org/git/wine.git
synced 2024-11-05 18:01:34 +00:00
winedump: Fix REG_DWORD dumping with no data.
This commit is contained in:
parent
753875e80b
commit
d7aaf51459
1 changed files with 5 additions and 2 deletions
|
@ -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):\"");
|
||||
|
|
Loading…
Reference in a new issue