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
1 changed files with 3 additions and 0 deletions

View File

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