msxml3: Always return False for nodes that can't have children.
This commit is contained in:
parent
0403f34b78
commit
6cc0e706dd
|
@ -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(
|
||||
|
|
Loading…
Reference in New Issue