Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
13f202a6
Commit
13f202a6
authored
Jul 02, 2008
by
Alistair Leslie-Hughes
Committed by
Alexandre Julliard
Jul 03, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msxml3: Use libxml macros to get the length of a set.
parent
0781daba
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
queryresult.c
dlls/msxml3/queryresult.c
+4
-4
No files found.
dlls/msxml3/queryresult.c
View file @
13f202a6
...
...
@@ -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
]);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment