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
01bd1c17
Commit
01bd1c17
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 nodelist.
parent
212335e0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
1 deletion
+13
-1
nodelist.c
dlls/msxml3/nodelist.c
+13
-1
No files found.
dlls/msxml3/nodelist.c
View file @
01bd1c17
...
...
@@ -66,6 +66,9 @@ static HRESULT WINAPI xmlnodelist_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
)
)
...
...
@@ -203,7 +206,10 @@ static HRESULT WINAPI xmlnodelist_get_item(
long
nodeIndex
=
0
;
TRACE
(
"%p %ld
\n
"
,
This
,
index
);
if
(
!
listItem
)
return
E_INVALIDARG
;
*
listItem
=
NULL
;
if
(
index
<
0
)
...
...
@@ -234,6 +240,9 @@ static HRESULT WINAPI xmlnodelist_get_length(
TRACE
(
"%p
\n
"
,
This
);
if
(
!
listLength
)
return
E_INVALIDARG
;
curr
=
This
->
parent
->
children
;
while
(
curr
)
{
...
...
@@ -253,6 +262,9 @@ static HRESULT WINAPI xmlnodelist_nextNode(
TRACE
(
"%p %p
\n
"
,
This
,
nextItem
);
if
(
!
nextItem
)
return
E_INVALIDARG
;
*
nextItem
=
NULL
;
if
(
!
This
->
current
)
...
...
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