mirror of
https://github.com/reactos/wine.git
synced 2025-02-21 05:11:57 +00:00
msxml3: Use dispex support for IDispatch implementation of process instruction node.
This commit is contained in:
parent
58ad6fcf1f
commit
9756cbf70f
@ -126,12 +126,7 @@ static HRESULT WINAPI dom_pi_GetTypeInfoCount(
|
|||||||
UINT* pctinfo )
|
UINT* pctinfo )
|
||||||
{
|
{
|
||||||
dom_pi *This = impl_from_IXMLDOMProcessingInstruction( iface );
|
dom_pi *This = impl_from_IXMLDOMProcessingInstruction( iface );
|
||||||
|
return IDispatchEx_GetTypeInfoCount(&This->node.dispex.IDispatchEx_iface, pctinfo);
|
||||||
TRACE("(%p)->(%p)\n", This, pctinfo);
|
|
||||||
|
|
||||||
*pctinfo = 1;
|
|
||||||
|
|
||||||
return S_OK;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static HRESULT WINAPI dom_pi_GetTypeInfo(
|
static HRESULT WINAPI dom_pi_GetTypeInfo(
|
||||||
@ -140,10 +135,8 @@ static HRESULT WINAPI dom_pi_GetTypeInfo(
|
|||||||
ITypeInfo** ppTInfo )
|
ITypeInfo** ppTInfo )
|
||||||
{
|
{
|
||||||
dom_pi *This = impl_from_IXMLDOMProcessingInstruction( iface );
|
dom_pi *This = impl_from_IXMLDOMProcessingInstruction( iface );
|
||||||
|
return IDispatchEx_GetTypeInfo(&This->node.dispex.IDispatchEx_iface,
|
||||||
TRACE("(%p)->(%u %u %p)\n", This, iTInfo, lcid, ppTInfo);
|
iTInfo, lcid, ppTInfo);
|
||||||
|
|
||||||
return get_typeinfo(IXMLDOMProcessingInstruction_tid, ppTInfo);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static HRESULT WINAPI dom_pi_GetIDsOfNames(
|
static HRESULT WINAPI dom_pi_GetIDsOfNames(
|
||||||
@ -152,23 +145,8 @@ static HRESULT WINAPI dom_pi_GetIDsOfNames(
|
|||||||
UINT cNames, LCID lcid, DISPID* rgDispId )
|
UINT cNames, LCID lcid, DISPID* rgDispId )
|
||||||
{
|
{
|
||||||
dom_pi *This = impl_from_IXMLDOMProcessingInstruction( iface );
|
dom_pi *This = impl_from_IXMLDOMProcessingInstruction( iface );
|
||||||
ITypeInfo *typeinfo;
|
return IDispatchEx_GetIDsOfNames(&This->node.dispex.IDispatchEx_iface,
|
||||||
HRESULT hr;
|
riid, rgszNames, cNames, lcid, rgDispId);
|
||||||
|
|
||||||
TRACE("(%p)->(%s %p %u %u %p)\n", This, debugstr_guid(riid), rgszNames, cNames,
|
|
||||||
lcid, rgDispId);
|
|
||||||
|
|
||||||
if(!rgszNames || cNames == 0 || !rgDispId)
|
|
||||||
return E_INVALIDARG;
|
|
||||||
|
|
||||||
hr = get_typeinfo(IXMLDOMProcessingInstruction_tid, &typeinfo);
|
|
||||||
if(SUCCEEDED(hr))
|
|
||||||
{
|
|
||||||
hr = ITypeInfo_GetIDsOfNames(typeinfo, rgszNames, cNames, rgDispId);
|
|
||||||
ITypeInfo_Release(typeinfo);
|
|
||||||
}
|
|
||||||
|
|
||||||
return hr;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static HRESULT WINAPI dom_pi_Invoke(
|
static HRESULT WINAPI dom_pi_Invoke(
|
||||||
@ -178,21 +156,8 @@ static HRESULT WINAPI dom_pi_Invoke(
|
|||||||
EXCEPINFO* pExcepInfo, UINT* puArgErr )
|
EXCEPINFO* pExcepInfo, UINT* puArgErr )
|
||||||
{
|
{
|
||||||
dom_pi *This = impl_from_IXMLDOMProcessingInstruction( iface );
|
dom_pi *This = impl_from_IXMLDOMProcessingInstruction( iface );
|
||||||
ITypeInfo *typeinfo;
|
return IDispatchEx_Invoke(&This->node.dispex.IDispatchEx_iface,
|
||||||
HRESULT hr;
|
dispIdMember, riid, lcid, wFlags, pDispParams, pVarResult, pExcepInfo, puArgErr);
|
||||||
|
|
||||||
TRACE("(%p)->(%d %s %d %d %p %p %p %p)\n", This, dispIdMember, debugstr_guid(riid),
|
|
||||||
lcid, wFlags, pDispParams, pVarResult, pExcepInfo, puArgErr);
|
|
||||||
|
|
||||||
hr = get_typeinfo(IXMLDOMProcessingInstruction_tid, &typeinfo);
|
|
||||||
if(SUCCEEDED(hr))
|
|
||||||
{
|
|
||||||
hr = ITypeInfo_Invoke(typeinfo, &This->IXMLDOMProcessingInstruction_iface, dispIdMember,
|
|
||||||
wFlags, pDispParams, pVarResult, pExcepInfo, puArgErr);
|
|
||||||
ITypeInfo_Release(typeinfo);
|
|
||||||
}
|
|
||||||
|
|
||||||
return hr;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static HRESULT WINAPI dom_pi_get_nodeName(
|
static HRESULT WINAPI dom_pi_get_nodeName(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user