Commit bce90cfb authored by Huw Davies's avatar Huw Davies Committed by Alexandre Julliard

msxml: Fix for selectNodes when the node has no children.

parent 213d8a0f
......@@ -563,6 +563,9 @@ static HRESULT WINAPI xmlnode_selectNodes(
if (!str)
return r;
if( !This->node->children )
return S_FALSE;
*resultList = create_filtered_nodelist( This->node->children, str );
HeapFree( GetProcessHeap(), 0, str );
return S_OK;
......@@ -580,7 +583,7 @@ static HRESULT WINAPI xmlnode_selectSingleNode(
TRACE("%p %s %p\n", This, debugstr_w(queryString), resultNode );
r = IXMLDOMNode_selectNodes(iface, queryString, &list);
if(SUCCEEDED(r))
if(r == S_OK)
{
r = IXMLDOMNodeList_nextNode(list, resultNode);
IXMLDOMNodeList_Release(list);
......
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