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
242beac6
Commit
242beac6
authored
Jun 01, 2015
by
Dmitry Timoshkov
Committed by
Alexandre Julliard
Jun 02, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Handle VT_INT/VT_UI4 same way as VT_I4/VT_UINT in IHTMLElementCollection::item.
parent
6e94edd3
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
0 deletions
+23
-0
htmlelemcol.c
dlls/mshtml/htmlelemcol.c
+2
-0
dom.c
dlls/mshtml/tests/dom.c
+21
-0
No files found.
dlls/mshtml/htmlelemcol.c
View file @
242beac6
...
...
@@ -419,11 +419,13 @@ static HRESULT WINAPI HTMLElementCollection_item(IHTMLElementCollection *iface,
switch
(
V_VT
(
&
name
))
{
case
VT_I4
:
case
VT_INT
:
if
(
V_I4
(
&
name
)
<
0
)
return
E_INVALIDARG
;
hres
=
get_item_idx
(
This
,
V_I4
(
&
name
),
pdisp
);
break
;
case
VT_UI4
:
case
VT_UINT
:
hres
=
get_item_idx
(
This
,
V_UINT
(
&
name
),
pdisp
);
break
;
...
...
dlls/mshtml/tests/dom.c
View file @
242beac6
...
...
@@ -2437,6 +2437,27 @@ static void _test_elem_collection(unsigned line, IUnknown *unk,
ok_
(
__FILE__
,
line
)
(
hres
==
S_OK
,
"item failed: %08x
\n
"
,
hres
);
ok_
(
__FILE__
,
line
)
(
disp
==
NULL
,
"disp != NULL
\n
"
);
V_VT
(
&
name
)
=
VT_UI4
;
V_I4
(
&
name
)
=
len
;
disp
=
(
void
*
)
0xdeadbeef
;
hres
=
IHTMLElementCollection_item
(
col
,
name
,
index
,
&
disp
);
ok_
(
__FILE__
,
line
)
(
hres
==
S_OK
,
"item failed: %08x
\n
"
,
hres
);
ok_
(
__FILE__
,
line
)
(
disp
==
NULL
,
"disp != NULL
\n
"
);
V_VT
(
&
name
)
=
VT_INT
;
V_I4
(
&
name
)
=
len
;
disp
=
(
void
*
)
0xdeadbeef
;
hres
=
IHTMLElementCollection_item
(
col
,
name
,
index
,
&
disp
);
ok_
(
__FILE__
,
line
)
(
hres
==
S_OK
,
"item failed: %08x
\n
"
,
hres
);
ok_
(
__FILE__
,
line
)
(
disp
==
NULL
,
"disp != NULL
\n
"
);
V_VT
(
&
name
)
=
VT_UINT
;
V_I4
(
&
name
)
=
len
;
disp
=
(
void
*
)
0xdeadbeef
;
hres
=
IHTMLElementCollection_item
(
col
,
name
,
index
,
&
disp
);
ok_
(
__FILE__
,
line
)
(
hres
==
S_OK
,
"item failed: %08x
\n
"
,
hres
);
ok_
(
__FILE__
,
line
)
(
disp
==
NULL
,
"disp != NULL
\n
"
);
V_VT
(
&
name
)
=
VT_I4
;
V_I4
(
&
name
)
=
-
1
;
disp
=
(
void
*
)
0xdeadbeef
;
...
...
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