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
cdd28b0a
Commit
cdd28b0a
authored
Sep 18, 2014
by
Qian Hong
Committed by
Alexandre Julliard
Sep 18, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Handle DISPATCH_PROPERTYPUT | DISPATCH_PROPERTYPUTREF in invoke_builtin_prop.
parent
a9d347cb
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
1 deletion
+9
-1
dispex.c
dlls/mshtml/dispex.c
+2
-1
script.c
dlls/mshtml/tests/script.c
+7
-0
No files found.
dlls/mshtml/dispex.c
View file @
cdd28b0a
...
@@ -1230,6 +1230,7 @@ static HRESULT invoke_builtin_prop(DispatchEx *This, DISPID id, LCID lcid, WORD
...
@@ -1230,6 +1230,7 @@ static HRESULT invoke_builtin_prop(DispatchEx *This, DISPID id, LCID lcid, WORD
switch
(
flags
)
{
switch
(
flags
)
{
case
DISPATCH_PROPERTYPUT
:
case
DISPATCH_PROPERTYPUT
:
case
DISPATCH_PROPERTYPUT
|
DISPATCH_PROPERTYPUTREF
:
if
(
res
)
if
(
res
)
V_VT
(
res
)
=
VT_EMPTY
;
V_VT
(
res
)
=
VT_EMPTY
;
hres
=
builtin_propput
(
This
,
func
,
dp
,
caller
);
hres
=
builtin_propput
(
This
,
func
,
dp
,
caller
);
...
@@ -1249,7 +1250,7 @@ static HRESULT invoke_builtin_prop(DispatchEx *This, DISPID id, LCID lcid, WORD
...
@@ -1249,7 +1250,7 @@ static HRESULT invoke_builtin_prop(DispatchEx *This, DISPID id, LCID lcid, WORD
if
(
flags
!=
(
DISPATCH_PROPERTYGET
|
DISPATCH_METHOD
)
||
dp
->
cArgs
)
{
if
(
flags
!=
(
DISPATCH_PROPERTYGET
|
DISPATCH_METHOD
)
||
dp
->
cArgs
)
{
if
(
V_VT
(
&
v
)
!=
VT_DISPATCH
)
{
if
(
V_VT
(
&
v
)
!=
VT_DISPATCH
)
{
FIXME
(
"Not a function %s
\n
"
,
debugstr_variant
(
&
v
)
);
FIXME
(
"Not a function %s
flags %08x
\n
"
,
debugstr_variant
(
&
v
),
flags
);
VariantClear
(
&
v
);
VariantClear
(
&
v
);
return
E_FAIL
;
return
E_FAIL
;
}
}
...
...
dlls/mshtml/tests/script.c
View file @
cdd28b0a
...
@@ -2091,6 +2091,13 @@ static void test_default_arg_conv(IHTMLWindow2 *window)
...
@@ -2091,6 +2091,13 @@ static void test_default_arg_conv(IHTMLWindow2 *window)
test_elem_disabled
(
elem
,
VARIANT_FALSE
);
test_elem_disabled
(
elem
,
VARIANT_FALSE
);
V_VT
(
&
v
)
=
VT_I4
;
V_I4
(
&
v
)
=
1
;
hres
=
dispex_propput
(
dispex
,
DISPID_IHTMLELEMENT3_DISABLED
,
DISPATCH_PROPERTYPUTREF
,
&
v
,
NULL
);
ok
(
hres
==
S_OK
,
"InvokeEx failed: %08x
\n
"
,
hres
);
test_elem_disabled
(
elem
,
VARIANT_TRUE
);
IHTMLElement_Release
(
elem
);
IHTMLElement_Release
(
elem
);
IDispatchEx_Release
(
dispex
);
IDispatchEx_Release
(
dispex
);
}
}
...
...
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