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
91dcf287
Commit
91dcf287
authored
Jun 23, 2008
by
Jacek Caban
Committed by
Alexandre Julliard
Jun 24, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Fixed argument checking in IHTMLDOMChildrenCollection::item.
parent
8d7066b2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
1 deletion
+6
-1
htmlnode.c
dlls/mshtml/htmlnode.c
+1
-1
dom.c
dlls/mshtml/tests/dom.c
+5
-0
No files found.
dlls/mshtml/htmlnode.c
View file @
91dcf287
...
...
@@ -166,7 +166,7 @@ static HRESULT WINAPI HTMLDOMChildrenCollection_item(IHTMLDOMChildrenCollection
TRACE
(
"(%p)->(%ld %p)
\n
"
,
This
,
index
,
ppItem
);
nsIDOMNodeList_GetLength
(
This
->
nslist
,
&
length
);
if
(
index
<
0
||
index
>
length
)
if
(
index
<
0
||
index
>
=
length
)
return
E_INVALIDARG
;
nsres
=
nsIDOMNodeList_Item
(
This
->
nslist
,
index
,
&
nsnode
);
...
...
dlls/mshtml/tests/dom.c
View file @
91dcf287
...
...
@@ -2042,6 +2042,11 @@ static void test_elems(IHTMLDocument2 *doc)
ok
(
hres
==
E_INVALIDARG
,
"item failed: %08x, expected E_INVALIDARG
\n
"
,
hres
);
ok
(
disp
==
(
void
*
)
0xdeadbeef
,
"disp=%p
\n
"
,
disp
);
disp
=
(
void
*
)
0xdeadbeef
;
hres
=
IHTMLDOMChildrenCollection_item
(
child_col
,
length
,
&
disp
);
ok
(
hres
==
E_INVALIDARG
,
"item failed: %08x, expected E_INVALIDARG
\n
"
,
hres
);
ok
(
disp
==
(
void
*
)
0xdeadbeef
,
"disp=%p
\n
"
,
disp
);
test_child_col_disp
(
child_col
);
IHTMLDOMChildrenCollection_Release
(
child_col
);
...
...
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