Commit f28da5a8 authored by Robert Shearman's avatar Robert Shearman Committed by Alexandre Julliard

Avoid crash by passing pointer to RegSetValueEx.

parent 48c51eea
......@@ -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;
......
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