Commit a7f4e8bf authored by Alexandre Julliard's avatar Alexandre Julliard

oleaut32: Properly initialize the result variant in VarImp.

parent 0a6bdc79
......@@ -5875,7 +5875,10 @@ HRESULT WINAPI VarImp(LPVARIANT left, LPVARIANT right, LPVARIANT result)
if (FAILED(hres)) goto VarImp_Exit;
if (rightvt == VT_NULL)
{
memset( &rv, 0, sizeof(rv) );
V_VT(&rv) = resvt;
}
else
{
hres = VariantCopy(&rv, right);
......
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