oleaut32: Properly initialize the result variant in VarImp.

This commit is contained in:
Alexandre Julliard 2007-10-29 13:53:40 +01:00
parent 0a6bdc79e3
commit a7f4e8bf74

View File

@ -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);