Commit 13f202a6 authored by Alistair Leslie-Hughes's avatar Alistair Leslie-Hughes Committed by Alexandre Julliard

msxml3: Use libxml macros to get the length of a set.

parent 0781daba
......@@ -99,7 +99,7 @@ HRESULT queryresult_create(xmlNodePtr node, LPWSTR szQuery, IXMLDOMNodeList **ou
*out = (IXMLDOMNodeList *)This;
hr = S_OK;
TRACE("found %d matches\n", This->result->nodesetval->nodeNr);
TRACE("found %d matches\n", xmlXPathNodeSetGetLength(This->result->nodesetval));
cleanup:
if (This != NULL && FAILED(hr))
......@@ -257,7 +257,7 @@ static HRESULT WINAPI queryresult_get_item(
*listItem = NULL;
if (index < 0 || index >= This->result->nodesetval->nodeNr)
if (index < 0 || index >= xmlXPathNodeSetGetLength(This->result->nodesetval))
return S_FALSE;
*listItem = create_node(This->result->nodesetval->nodeTab[index]);
......@@ -274,7 +274,7 @@ static HRESULT WINAPI queryresult_get_length(
TRACE("%p\n", This);
*listLength = This->result->nodesetval->nodeNr;
*listLength = xmlXPathNodeSetGetLength(This->result->nodesetval);
return S_OK;
}
......@@ -288,7 +288,7 @@ static HRESULT WINAPI queryresult_nextNode(
*nextItem = NULL;
if (This->resultPos >= This->result->nodesetval->nodeNr)
if (This->resultPos >= xmlXPathNodeSetGetLength(This->result->nodesetval))
return S_FALSE;
*nextItem = create_node(This->result->nodesetval->nodeTab[This->resultPos]);
......
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