Commit 6cc0e706 authored by Nikolay Sivov's avatar Nikolay Sivov Committed by Alexandre Julliard

msxml3: Always return False for nodes that can't have children.

parent 0403f34b
......@@ -333,7 +333,7 @@ static HRESULT WINAPI domcdata_hasChildNodes(
{
domcdata *This = impl_from_IXMLDOMCDATASection( iface );
TRACE("(%p)->(%p)\n", This, ret);
return node_has_childnodes(&This->node, ret);
return return_var_false(ret);
}
static HRESULT WINAPI domcdata_get_ownerDocument(
......
......@@ -332,7 +332,7 @@ static HRESULT WINAPI domcomment_hasChildNodes(
{
domcomment *This = impl_from_IXMLDOMComment( iface );
TRACE("(%p)->(%p)\n", This, ret);
return node_has_childnodes(&This->node, ret);
return return_var_false(ret);
}
static HRESULT WINAPI domcomment_get_ownerDocument(
......
......@@ -475,6 +475,15 @@ static inline HRESULT return_null_bstr(BSTR *p)
return S_FALSE;
}
static inline HRESULT return_var_false(VARIANT_BOOL *p)
{
if(!p)
return E_INVALIDARG;
*p = VARIANT_FALSE;
return S_FALSE;
}
extern IXMLDOMParseError *create_parseError( LONG code, BSTR url, BSTR reason, BSTR srcText,
LONG line, LONG linepos, LONG filepos ) DECLSPEC_HIDDEN;
extern HRESULT DOMDocument_create(MSXML_VERSION, IUnknown*, void**) DECLSPEC_HIDDEN;
......
......@@ -330,7 +330,7 @@ static HRESULT WINAPI domtext_hasChildNodes(
{
domtext *This = impl_from_IXMLDOMText( iface );
TRACE("(%p)->(%p)\n", This, ret);
return node_has_childnodes(&This->node, ret);
return return_var_false(ret);
}
static HRESULT WINAPI domtext_get_ownerDocument(
......
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