Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
212335e0
Commit
212335e0
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: Added checks for invalid arguments in queryresult.
parent
3ac31945
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
0 deletions
+12
-0
queryresult.c
dlls/msxml3/queryresult.c
+12
-0
No files found.
dlls/msxml3/queryresult.c
View file @
212335e0
...
...
@@ -118,6 +118,9 @@ static HRESULT WINAPI queryresult_QueryInterface(
{
TRACE
(
"%p %s %p
\n
"
,
iface
,
debugstr_guid
(
riid
),
ppvObject
);
if
(
!
ppvObject
)
return
E_INVALIDARG
;
if
(
IsEqualGUID
(
riid
,
&
IID_IUnknown
)
||
IsEqualGUID
(
riid
,
&
IID_IDispatch
)
||
IsEqualGUID
(
riid
,
&
IID_IXMLDOMNodeList
)
)
...
...
@@ -255,6 +258,9 @@ static HRESULT WINAPI queryresult_get_item(
TRACE
(
"%p %ld
\n
"
,
This
,
index
);
if
(
!
listItem
)
return
E_INVALIDARG
;
*
listItem
=
NULL
;
if
(
index
<
0
||
index
>=
xmlXPathNodeSetGetLength
(
This
->
result
->
nodesetval
))
...
...
@@ -274,6 +280,9 @@ static HRESULT WINAPI queryresult_get_length(
TRACE
(
"%p
\n
"
,
This
);
if
(
!
listLength
)
return
E_INVALIDARG
;
*
listLength
=
xmlXPathNodeSetGetLength
(
This
->
result
->
nodesetval
);
return
S_OK
;
}
...
...
@@ -286,6 +295,9 @@ static HRESULT WINAPI queryresult_nextNode(
TRACE
(
"%p %p
\n
"
,
This
,
nextItem
);
if
(
!
nextItem
)
return
E_INVALIDARG
;
*
nextItem
=
NULL
;
if
(
This
->
resultPos
>=
xmlXPathNodeSetGetLength
(
This
->
result
->
nodesetval
))
...
...
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