Implement IXMLDOMNode::hasChildNode().

This commit is contained in:
Mike McCormack 2005-08-22 09:24:44 +00:00 committed by Alexandre Julliard
parent ded8dd8b82
commit da3393d4d7
1 changed files with 14 additions and 2 deletions

View File

@ -382,8 +382,20 @@ static HRESULT WINAPI xmlnode_hasChildNodes(
IXMLDOMNode *iface, IXMLDOMNode *iface,
VARIANT_BOOL* hasChild) VARIANT_BOOL* hasChild)
{ {
FIXME("\n"); xmlnode *This = impl_from_IXMLDOMNode( iface );
return E_NOTIMPL;
TRACE("%p\n", This);
if (!hasChild)
return E_INVALIDARG;
if (!This->node->children)
{
*hasChild = VARIANT_FALSE;
return S_FALSE;
}
*hasChild = VARIANT_TRUE;
return S_OK;
} }
static HRESULT WINAPI xmlnode_get_ownerDocument( static HRESULT WINAPI xmlnode_get_ownerDocument(