Commit e983db85 authored by Nikolay Sivov's avatar Nikolay Sivov Committed by Alexandre Julliard

msxml3: Internally call methods with interface macros.

parent 85cf92ae
...@@ -672,28 +672,28 @@ static inline domdoc *impl_from_IConnectionPointContainer(IConnectionPointContai ...@@ -672,28 +672,28 @@ static inline domdoc *impl_from_IConnectionPointContainer(IConnectionPointContai
/************************************************************************ /************************************************************************
* domdoc implementation of IPersistStream. * domdoc implementation of IPersistStream.
*/ */
static HRESULT WINAPI domdoc_IPersistStreamInit_QueryInterface( static HRESULT WINAPI PersistStreamInit_QueryInterface(
IPersistStreamInit *iface, REFIID riid, void **ppvObj) IPersistStreamInit *iface, REFIID riid, void **ppvObj)
{ {
domdoc* This = impl_from_IPersistStreamInit(iface); domdoc* This = impl_from_IPersistStreamInit(iface);
return IXMLDOMDocument3_QueryInterface(&This->IXMLDOMDocument3_iface, riid, ppvObj); return IXMLDOMDocument3_QueryInterface(&This->IXMLDOMDocument3_iface, riid, ppvObj);
} }
static ULONG WINAPI domdoc_IPersistStreamInit_AddRef( static ULONG WINAPI PersistStreamInit_AddRef(
IPersistStreamInit *iface) IPersistStreamInit *iface)
{ {
domdoc* This = impl_from_IPersistStreamInit(iface); domdoc* This = impl_from_IPersistStreamInit(iface);
return IXMLDOMDocument3_AddRef(&This->IXMLDOMDocument3_iface); return IXMLDOMDocument3_AddRef(&This->IXMLDOMDocument3_iface);
} }
static ULONG WINAPI domdoc_IPersistStreamInit_Release( static ULONG WINAPI PersistStreamInit_Release(
IPersistStreamInit *iface) IPersistStreamInit *iface)
{ {
domdoc* This = impl_from_IPersistStreamInit(iface); domdoc* This = impl_from_IPersistStreamInit(iface);
return IXMLDOMDocument3_Release(&This->IXMLDOMDocument3_iface); return IXMLDOMDocument3_Release(&This->IXMLDOMDocument3_iface);
} }
static HRESULT WINAPI domdoc_IPersistStreamInit_GetClassID( static HRESULT WINAPI PersistStreamInit_GetClassID(
IPersistStreamInit *iface, CLSID *classid) IPersistStreamInit *iface, CLSID *classid)
{ {
domdoc* This = impl_from_IPersistStreamInit(iface); domdoc* This = impl_from_IPersistStreamInit(iface);
...@@ -707,7 +707,7 @@ static HRESULT WINAPI domdoc_IPersistStreamInit_GetClassID( ...@@ -707,7 +707,7 @@ static HRESULT WINAPI domdoc_IPersistStreamInit_GetClassID(
return S_OK; return S_OK;
} }
static HRESULT WINAPI domdoc_IPersistStreamInit_IsDirty( static HRESULT WINAPI PersistStreamInit_IsDirty(
IPersistStreamInit *iface) IPersistStreamInit *iface)
{ {
domdoc *This = impl_from_IPersistStreamInit(iface); domdoc *This = impl_from_IPersistStreamInit(iface);
...@@ -715,7 +715,7 @@ static HRESULT WINAPI domdoc_IPersistStreamInit_IsDirty( ...@@ -715,7 +715,7 @@ static HRESULT WINAPI domdoc_IPersistStreamInit_IsDirty(
return S_FALSE; return S_FALSE;
} }
static HRESULT WINAPI domdoc_IPersistStreamInit_Load( static HRESULT WINAPI PersistStreamInit_Load(
IPersistStreamInit *iface, LPSTREAM pStm) IPersistStreamInit *iface, LPSTREAM pStm)
{ {
domdoc *This = impl_from_IPersistStreamInit(iface); domdoc *This = impl_from_IPersistStreamInit(iface);
...@@ -768,7 +768,7 @@ static HRESULT WINAPI domdoc_IPersistStreamInit_Load( ...@@ -768,7 +768,7 @@ static HRESULT WINAPI domdoc_IPersistStreamInit_Load(
return attach_xmldoc(This, xmldoc); return attach_xmldoc(This, xmldoc);
} }
static HRESULT WINAPI domdoc_IPersistStreamInit_Save( static HRESULT WINAPI PersistStreamInit_Save(
IPersistStreamInit *iface, IStream *stream, BOOL clr_dirty) IPersistStreamInit *iface, IStream *stream, BOOL clr_dirty)
{ {
domdoc *This = impl_from_IPersistStreamInit(iface); domdoc *This = impl_from_IPersistStreamInit(iface);
...@@ -791,7 +791,7 @@ static HRESULT WINAPI domdoc_IPersistStreamInit_Save( ...@@ -791,7 +791,7 @@ static HRESULT WINAPI domdoc_IPersistStreamInit_Save(
return hr; return hr;
} }
static HRESULT WINAPI domdoc_IPersistStreamInit_GetSizeMax( static HRESULT WINAPI PersistStreamInit_GetSizeMax(
IPersistStreamInit *iface, ULARGE_INTEGER *pcbSize) IPersistStreamInit *iface, ULARGE_INTEGER *pcbSize)
{ {
domdoc *This = impl_from_IPersistStreamInit(iface); domdoc *This = impl_from_IPersistStreamInit(iface);
...@@ -799,7 +799,7 @@ static HRESULT WINAPI domdoc_IPersistStreamInit_GetSizeMax( ...@@ -799,7 +799,7 @@ static HRESULT WINAPI domdoc_IPersistStreamInit_GetSizeMax(
return E_NOTIMPL; return E_NOTIMPL;
} }
static HRESULT WINAPI domdoc_IPersistStreamInit_InitNew( static HRESULT WINAPI PersistStreamInit_InitNew(
IPersistStreamInit *iface) IPersistStreamInit *iface)
{ {
domdoc *This = impl_from_IPersistStreamInit(iface); domdoc *This = impl_from_IPersistStreamInit(iface);
...@@ -809,15 +809,15 @@ static HRESULT WINAPI domdoc_IPersistStreamInit_InitNew( ...@@ -809,15 +809,15 @@ static HRESULT WINAPI domdoc_IPersistStreamInit_InitNew(
static const IPersistStreamInitVtbl xmldoc_IPersistStreamInit_VTable = static const IPersistStreamInitVtbl xmldoc_IPersistStreamInit_VTable =
{ {
domdoc_IPersistStreamInit_QueryInterface, PersistStreamInit_QueryInterface,
domdoc_IPersistStreamInit_AddRef, PersistStreamInit_AddRef,
domdoc_IPersistStreamInit_Release, PersistStreamInit_Release,
domdoc_IPersistStreamInit_GetClassID, PersistStreamInit_GetClassID,
domdoc_IPersistStreamInit_IsDirty, PersistStreamInit_IsDirty,
domdoc_IPersistStreamInit_Load, PersistStreamInit_Load,
domdoc_IPersistStreamInit_Save, PersistStreamInit_Save,
domdoc_IPersistStreamInit_GetSizeMax, PersistStreamInit_GetSizeMax,
domdoc_IPersistStreamInit_InitNew PersistStreamInit_InitNew
}; };
/* IXMLDOMDocument3 interface */ /* IXMLDOMDocument3 interface */
...@@ -2665,7 +2665,7 @@ static HRESULT WINAPI domdoc_validateNode( ...@@ -2665,7 +2665,7 @@ static HRESULT WINAPI domdoc_validateNode(
int validated = 0; int validated = 0;
TRACE("(%p)->(%p, %p)\n", This, node, err); TRACE("(%p)->(%p, %p)\n", This, node, err);
domdoc_get_readyState(iface, &state); IXMLDOMDocument3_get_readyState(iface, &state);
if (state != READYSTATE_COMPLETE) if (state != READYSTATE_COMPLETE)
{ {
if (err) if (err)
...@@ -2760,7 +2760,7 @@ static HRESULT WINAPI domdoc_validate( ...@@ -2760,7 +2760,7 @@ static HRESULT WINAPI domdoc_validate(
{ {
domdoc *This = impl_from_IXMLDOMDocument3( iface ); domdoc *This = impl_from_IXMLDOMDocument3( iface );
TRACE("(%p)->(%p)\n", This, err); TRACE("(%p)->(%p)\n", This, err);
return domdoc_validateNode(iface, (IXMLDOMNode*)iface, err); return IXMLDOMDocument3_validateNode(iface, (IXMLDOMNode*)iface, err);
} }
static HRESULT WINAPI domdoc_setProperty( static HRESULT WINAPI domdoc_setProperty(
......
...@@ -222,23 +222,23 @@ static HRESULT WINAPI dom_pi_put_nodeValue( ...@@ -222,23 +222,23 @@ static HRESULT WINAPI dom_pi_put_nodeValue(
VARIANT value) VARIANT value)
{ {
dom_pi *This = impl_from_IXMLDOMProcessingInstruction( iface ); dom_pi *This = impl_from_IXMLDOMProcessingInstruction( iface );
BSTR sTarget; BSTR target;
HRESULT hr; HRESULT hr;
TRACE("(%p)->(%s)\n", This, debugstr_variant(&value)); TRACE("(%p)->(%s)\n", This, debugstr_variant(&value));
/* Cannot set data to a PI node whose target is 'xml' */ /* Cannot set data to a PI node whose target is 'xml' */
hr = dom_pi_get_nodeName(iface, &sTarget); hr = IXMLDOMProcessingInstruction_get_nodeName(iface, &target);
if(hr == S_OK) if(hr == S_OK)
{ {
static const WCHAR xmlW[] = {'x','m','l',0}; static const WCHAR xmlW[] = {'x','m','l',0};
if(lstrcmpW( sTarget, xmlW) == 0) if(!strcmpW(target, xmlW))
{ {
SysFreeString(sTarget); SysFreeString(target);
return E_FAIL; return E_FAIL;
} }
SysFreeString(sTarget); SysFreeString(target);
} }
return node_put_value(&This->node, &value); return node_put_value(&This->node, &value);
...@@ -637,24 +637,24 @@ static HRESULT WINAPI dom_pi_put_data( ...@@ -637,24 +637,24 @@ static HRESULT WINAPI dom_pi_put_data(
BSTR data) BSTR data)
{ {
dom_pi *This = impl_from_IXMLDOMProcessingInstruction( iface ); dom_pi *This = impl_from_IXMLDOMProcessingInstruction( iface );
HRESULT hr;
VARIANT val; VARIANT val;
BSTR sTarget; BSTR target;
HRESULT hr;
TRACE("(%p)->(%s)\n", This, debugstr_w(data) ); TRACE("(%p)->(%s)\n", This, debugstr_w(data) );
/* Cannot set data to a PI node whose target is 'xml' */ /* Cannot set data to a PI node whose target is 'xml' */
hr = dom_pi_get_nodeName(iface, &sTarget); hr = IXMLDOMProcessingInstruction_get_nodeName(iface, &target);
if(hr == S_OK) if(hr == S_OK)
{ {
static const WCHAR xmlW[] = {'x','m','l',0}; static const WCHAR xmlW[] = {'x','m','l',0};
if(lstrcmpW( sTarget, xmlW) == 0) if(!strcmpW(target, xmlW))
{ {
SysFreeString(sTarget); SysFreeString(target);
return E_FAIL; return E_FAIL;
} }
SysFreeString(sTarget); SysFreeString(target);
} }
V_VT(&val) = VT_BSTR; V_VT(&val) = VT_BSTR;
......
...@@ -406,7 +406,7 @@ static HRESULT WINAPI domtext_get_nodeTypedValue( ...@@ -406,7 +406,7 @@ static HRESULT WINAPI domtext_get_nodeTypedValue(
if (!var1) if (!var1)
return E_INVALIDARG; return E_INVALIDARG;
hr = domtext_get_parentNode(iface, &parent); hr = IXMLDOMText_get_parentNode(iface, &parent);
if (hr == S_OK) if (hr == S_OK)
{ {
...@@ -433,7 +433,7 @@ static HRESULT WINAPI domtext_put_nodeTypedValue( ...@@ -433,7 +433,7 @@ static HRESULT WINAPI domtext_put_nodeTypedValue(
TRACE("(%p)->(%s)\n", This, debugstr_variant(&value)); TRACE("(%p)->(%s)\n", This, debugstr_variant(&value));
hr = domtext_get_parentNode(iface, &parent); hr = IXMLDOMText_get_parentNode(iface, &parent);
if (hr == S_OK) if (hr == S_OK)
{ {
...@@ -461,7 +461,7 @@ static HRESULT WINAPI domtext_get_dataType( ...@@ -461,7 +461,7 @@ static HRESULT WINAPI domtext_get_dataType(
if (!dtName) if (!dtName)
return E_INVALIDARG; return E_INVALIDARG;
hr = domtext_get_parentNode(iface, &parent); hr = IXMLDOMText_get_parentNode(iface, &parent);
if (hr == S_OK) if (hr == S_OK)
{ {
...@@ -491,7 +491,7 @@ static HRESULT WINAPI domtext_put_dataType( ...@@ -491,7 +491,7 @@ static HRESULT WINAPI domtext_put_dataType(
if (!dtName) if (!dtName)
return E_INVALIDARG; return E_INVALIDARG;
hr = domtext_get_parentNode(iface, &parent); hr = IXMLDOMText_get_parentNode(iface, &parent);
if (hr == S_OK) if (hr == 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