winedbg: Save internal variables as proper DWORD values.

This commit is contained in:
Alexandre Julliard 2010-04-06 20:38:55 +02:00
parent 770c9bc873
commit 4f62b09071
1 changed files with 4 additions and 3 deletions

View File

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