oleaut32: Properly initialize the result variant in VarImp.
This commit is contained in:
parent
0a6bdc79e3
commit
a7f4e8bf74
|
@ -5875,7 +5875,10 @@ HRESULT WINAPI VarImp(LPVARIANT left, LPVARIANT right, LPVARIANT result)
|
||||||
if (FAILED(hres)) goto VarImp_Exit;
|
if (FAILED(hres)) goto VarImp_Exit;
|
||||||
|
|
||||||
if (rightvt == VT_NULL)
|
if (rightvt == VT_NULL)
|
||||||
|
{
|
||||||
|
memset( &rv, 0, sizeof(rv) );
|
||||||
V_VT(&rv) = resvt;
|
V_VT(&rv) = resvt;
|
||||||
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
hres = VariantCopy(&rv, right);
|
hres = VariantCopy(&rv, right);
|
||||||
|
|
Loading…
Reference in New Issue