oleaut32: Initialize result VARIANT in *FromDisp().

This commit is contained in:
Nikolay Sivov 2014-02-09 17:51:41 +04:00 committed by Alexandre Julliard
parent c583dea77c
commit 8c2b4bfe48
2 changed files with 2 additions and 0 deletions

View File

@ -604,6 +604,7 @@ static HRESULT WINAPI DummyDispatch_Invoke(IDispatch *iface,
ok(params->cNamedArgs == 0, "got %d\n", params->cNamedArgs);
ok(res != NULL, "got %p\n", res);
ok(V_VT(res) == VT_EMPTY, "got %d\n", V_VT(res));
ok(ei == NULL, "got %p\n", ei);
ok(arg_err == NULL, "got %p\n", arg_err);

View File

@ -122,6 +122,7 @@ static HRESULT VARIANT_FromDisp(IDispatch* pdispIn, LCID lcid, void* pOut,
return DISP_E_BADVARTYPE;
/* Get the default 'value' property from the IDispatch */
VariantInit(&srcVar);
hRet = IDispatch_Invoke(pdispIn, DISPID_VALUE, &IID_NULL, lcid, DISPATCH_PROPERTYGET,
&emptyParams, &srcVar, NULL, NULL);