Commit 4f62b090 authored by Alexandre Julliard's avatar Alexandre Julliard

winedbg: Save internal variables as proper DWORD values.

parent 770c9bc8
...@@ -227,9 +227,10 @@ static unsigned dbg_save_internal_vars(void) ...@@ -227,9 +227,10 @@ static unsigned dbg_save_internal_vars(void)
{ {
/* FIXME: type should be inferred from basic type -if any- of intvar */ /* FIXME: type should be inferred from basic type -if any- of intvar */
if (dbg_internal_vars[i].pval == &dbg_internal_vars[i].val) if (dbg_internal_vars[i].pval == &dbg_internal_vars[i].val)
RegSetValueExA(hkey, dbg_internal_vars[i].name, 0, {
REG_DWORD, (const void*)dbg_internal_vars[i].pval, DWORD val = dbg_internal_vars[i].val;
sizeof(*dbg_internal_vars[i].pval)); RegSetValueExA(hkey, dbg_internal_vars[i].name, 0, REG_DWORD, (BYTE *)&val, sizeof(val));
}
} }
RegCloseKey(hkey); RegCloseKey(hkey);
return TRUE; return TRUE;
......
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