oleaut: Partially implement Invoke on the standard picture implementation.

This commit is contained in:
Robert Shearman 2006-02-10 14:51:03 +01:00 committed by Alexandre Julliard
parent 265f042801
commit f4acfe9a53
1 changed files with 24 additions and 5 deletions

View File

@ -2028,6 +2028,24 @@ static HRESULT WINAPI OLEPictureImpl_Invoke(
VARIANT* pVarResult, VARIANT* pVarResult,
EXCEPINFO* pExepInfo, EXCEPINFO* pExepInfo,
UINT* puArgErr) 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); FIXME("(dispid: %ld):Stub\n",dispIdMember);
@ -2036,6 +2054,7 @@ static HRESULT WINAPI OLEPictureImpl_Invoke(
V_BOOL(pVarResult) = FALSE; V_BOOL(pVarResult) = FALSE;
return S_OK; return S_OK;
} }
}
static const IPictureVtbl OLEPictureImpl_VTable = static const IPictureVtbl OLEPictureImpl_VTable =