Avoid crash by passing pointer to RegSetValueEx.

This commit is contained in:
Robert Shearman 2004-06-14 16:54:56 +00:00 committed by Alexandre Julliard
parent 48c51eea23
commit f28da5a844
1 changed files with 2 additions and 1 deletions

View File

@ -220,7 +220,8 @@ static HRESULT WINAPI DEVENUM_IPropertyBag_Write(
break;
case VT_I4:
case VT_UI4:
lpData = (LPVOID)V_UNION(pVar, ulVal);
TRACE("writing %lu\n", V_UNION(pVar, ulVal));
lpData = (LPVOID)&V_UNION(pVar, ulVal);
dwType = REG_DWORD;
cbData = sizeof(DWORD);
break;