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
7db77df3
Commit
7db77df3
authored
Oct 06, 2008
by
Jacek Caban
Committed by
Alexandre Julliard
Oct 07, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Fixed handing non-element nodes in IHTMLElementCollection.
parent
a06ef640
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
3 deletions
+9
-3
htmlelemcol.c
dlls/mshtml/htmlelemcol.c
+9
-3
No files found.
dlls/mshtml/htmlelemcol.c
View file @
7db77df3
...
...
@@ -359,6 +359,9 @@ static HRESULT HTMLElementCollection_get_dispid(IUnknown *iface, BSTR name, DWOR
WCHAR
*
ptr
;
DWORD
idx
=
0
;
if
(
!*
name
)
return
DISP_E_UNKNOWNNAME
;
for
(
ptr
=
name
;
*
ptr
&&
isdigitW
(
*
ptr
);
ptr
++
)
idx
=
idx
*
10
+
(
*
ptr
-
'0'
);
...
...
@@ -484,8 +487,9 @@ IHTMLElementCollection *create_collection_from_nodelist(HTMLDocument *doc, IUnkn
nsIDOMNodeList_GetLength
(
nslist
,
&
length
);
buf
.
len
=
buf
.
size
=
length
;
if
(
buf
.
len
)
{
buf
.
len
=
0
;
buf
.
size
=
length
;
if
(
length
)
{
nsIDOMNode
*
nsnode
;
buf
.
buf
=
heap_alloc
(
buf
.
size
*
sizeof
(
HTMLElement
*
));
...
...
@@ -493,9 +497,11 @@ IHTMLElementCollection *create_collection_from_nodelist(HTMLDocument *doc, IUnkn
for
(
i
=
0
;
i
<
length
;
i
++
)
{
nsIDOMNodeList_Item
(
nslist
,
i
,
&
nsnode
);
if
(
is_elem_node
(
nsnode
))
buf
.
buf
[
i
]
=
HTMLELEM_NODE_THIS
(
get_node
(
doc
,
nsnode
,
TRUE
));
buf
.
buf
[
buf
.
len
++
]
=
HTMLELEM_NODE_THIS
(
get_node
(
doc
,
nsnode
,
TRUE
));
nsIDOMNode_Release
(
nsnode
);
}
elem_vector_normalize
(
&
buf
);
}
else
{
buf
.
buf
=
NULL
;
}
...
...
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