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
8a20cf4c
Commit
8a20cf4c
authored
Jan 11, 2016
by
Jacek Caban
Committed by
Alexandre Julliard
Jan 13, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Skip unused named args in Invoke calls.
Signed-off-by:
Jacek Caban
<
jacek@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
0ea5a01c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
1 deletion
+19
-1
dispex.c
dlls/mshtml/dispex.c
+2
-1
script.c
dlls/mshtml/tests/script.c
+17
-0
No files found.
dlls/mshtml/dispex.c
View file @
8a20cf4c
...
...
@@ -617,6 +617,7 @@ static HRESULT dispex_value(DispatchEx *This, LCID lcid, WORD flags, DISPPARAMS
static
HRESULT
typeinfo_invoke
(
DispatchEx
*
This
,
func_info_t
*
func
,
WORD
flags
,
DISPPARAMS
*
dp
,
VARIANT
*
res
,
EXCEPINFO
*
ei
)
{
DISPPARAMS
params
=
{
dp
->
rgvarg
+
dp
->
cNamedArgs
,
NULL
,
dp
->
cArgs
-
dp
->
cNamedArgs
,
0
};
ITypeInfo
*
ti
;
IUnknown
*
unk
;
UINT
argerr
=
0
;
...
...
@@ -634,7 +635,7 @@ static HRESULT typeinfo_invoke(DispatchEx *This, func_info_t *func, WORD flags,
return
E_FAIL
;
}
hres
=
ITypeInfo_Invoke
(
ti
,
unk
,
func
->
id
,
flags
,
dp
,
res
,
ei
,
&
argerr
);
hres
=
ITypeInfo_Invoke
(
ti
,
unk
,
func
->
id
,
flags
,
&
params
,
res
,
ei
,
&
argerr
);
IUnknown_Release
(
unk
);
return
hres
;
...
...
dlls/mshtml/tests/script.c
View file @
8a20cf4c
...
...
@@ -1926,6 +1926,23 @@ static void test_func(IDispatchEx *obj)
hres
=
IDispatchEx_Invoke
(
dispex
,
DISPID_VALUE
,
&
IID_NULL
,
LOCALE_NEUTRAL
,
DISPATCH_METHOD
,
&
dp
,
&
var
,
&
ei
,
NULL
);
ok
(
hres
==
S_OK
||
broken
(
E_ACCESSDENIED
),
"InvokeEx failed: %08x
\n
"
,
hres
);
if
(
SUCCEEDED
(
hres
))
{
DISPID
named_args
[
2
]
=
{
DISPID_THIS
,
0xdeadbeef
};
VARIANT
args
[
2
];
ok
(
V_VT
(
&
var
)
==
VT_BSTR
,
"V_VT(var)=%d
\n
"
,
V_VT
(
&
var
));
ok
(
!
strcmp_wa
(
V_BSTR
(
&
var
),
"[object]"
),
"V_BSTR(var) = %s
\n
"
,
wine_dbgstr_w
(
V_BSTR
(
&
var
)));
VariantClear
(
&
var
);
dp
.
rgdispidNamedArgs
=
named_args
;
dp
.
cNamedArgs
=
2
;
dp
.
cArgs
=
2
;
dp
.
rgvarg
=
&
var
;
V_VT
(
args
)
=
VT_DISPATCH
;
V_DISPATCH
(
args
)
=
(
IDispatch
*
)
obj
;
V_VT
(
args
+
1
)
=
VT_I4
;
V_I4
(
args
+
1
)
=
3
;
hres
=
IDispatchEx_Invoke
(
dispex
,
DISPID_VALUE
,
&
IID_NULL
,
LOCALE_NEUTRAL
,
DISPATCH_METHOD
,
&
dp
,
&
var
,
&
ei
,
NULL
);
ok
(
hres
==
S_OK
,
"InvokeEx failed: %08x
\n
"
,
hres
);
ok
(
V_VT
(
&
var
)
==
VT_BSTR
,
"V_VT(var)=%d
\n
"
,
V_VT
(
&
var
));
ok
(
!
strcmp_wa
(
V_BSTR
(
&
var
),
"[object]"
),
"V_BSTR(var) = %s
\n
"
,
wine_dbgstr_w
(
V_BSTR
(
&
var
)));
VariantClear
(
&
var
);
...
...
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