oleaut32: Initialize result VARIANT in *FromDisp().
This commit is contained in:
parent
c583dea77c
commit
8c2b4bfe48
|
@ -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);
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue