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
79fcaa78
Commit
79fcaa78
authored
May 27, 2009
by
Paul Vriens
Committed by
Alexandre Julliard
May 27, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Match IE8 implementation.
parent
45c00da4
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
4 deletions
+11
-4
htmlnode.c
dlls/mshtml/htmlnode.c
+5
-0
dom.c
dlls/mshtml/tests/dom.c
+6
-4
No files found.
dlls/mshtml/htmlnode.c
View file @
79fcaa78
...
...
@@ -157,6 +157,11 @@ static HRESULT WINAPI HTMLDOMChildrenCollection_item(IHTMLDOMChildrenCollection
TRACE
(
"(%p)->(%d %p)
\n
"
,
This
,
index
,
ppItem
);
if
(
ppItem
)
*
ppItem
=
NULL
;
else
return
E_POINTER
;
nsIDOMNodeList_GetLength
(
This
->
nslist
,
&
length
);
if
(
index
<
0
||
index
>=
length
)
return
E_INVALIDARG
;
...
...
dlls/mshtml/tests/dom.c
View file @
79fcaa78
...
...
@@ -4456,15 +4456,17 @@ static void test_elems(IHTMLDocument2 *doc)
IHTMLDOMNode_Release
(
node
);
}
disp
=
(
void
*
)
0xdeadbeef
;
hres
=
IHTMLDOMChildrenCollection_item
(
child_col
,
length
-
1
,
NULL
);
ok
(
hres
==
E_POINTER
,
"item failed: %08x, expected E_POINTER
\n
"
,
hres
);
hres
=
IHTMLDOMChildrenCollection_item
(
child_col
,
length
,
NULL
);
ok
(
hres
==
E_POINTER
,
"item failed: %08x, expected E_POINTER
\n
"
,
hres
);
hres
=
IHTMLDOMChildrenCollection_item
(
child_col
,
6000
,
&
disp
);
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
);
...
...
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