Avoid crash by passing pointer to RegSetValueEx.
This commit is contained in:
parent
48c51eea23
commit
f28da5a844
|
@ -220,7 +220,8 @@ static HRESULT WINAPI DEVENUM_IPropertyBag_Write(
|
||||||
break;
|
break;
|
||||||
case VT_I4:
|
case VT_I4:
|
||||||
case VT_UI4:
|
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;
|
dwType = REG_DWORD;
|
||||||
cbData = sizeof(DWORD);
|
cbData = sizeof(DWORD);
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in New Issue