Commit f4acfe9a authored by Robert Shearman's avatar Robert Shearman Committed by Alexandre Julliard

oleaut: Partially implement Invoke on the standard picture implementation.

parent 265f0428
......@@ -2029,12 +2029,31 @@ static HRESULT WINAPI OLEPictureImpl_Invoke(
EXCEPINFO* pExepInfo,
UINT* puArgErr)
{
OLEPictureImpl *This = impl_from_IDispatch(iface);
if (dispIdMember == DISPID_PICT_TYPE)
{
TRACE("DISPID_PICT_TYPE\n");
if (wFlags & ~INVOKE_PROPERTYGET)
return DISP_E_PARAMNOTFOUND;
if (pDispParams->cArgs != 0)
return DISP_E_BADPARAMCOUNT;
if (pVarResult)
{
VariantInit(pVarResult);
V_VT(pVarResult) = VT_I2;
return OLEPictureImpl_get_Type((IPicture *)&This->lpVtbl, &V_I2(pVarResult));
}
return S_OK;
}
else
{
FIXME("(dispid: %ld):Stub\n",dispIdMember);
VariantInit(pVarResult);
V_VT(pVarResult) = VT_BOOL;
V_BOOL(pVarResult) = FALSE;
return S_OK;
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment