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
2e2622ef
Commit
2e2622ef
authored
Aug 31, 2009
by
Jacek Caban
Committed by
Alexandre Julliard
Sep 01, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Move ITypeInfo::Invoke call to separated function.
parent
6478f3d6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
27 additions
and
19 deletions
+27
-19
dispex.c
dlls/mshtml/dispex.c
+27
-19
No files found.
dlls/mshtml/dispex.c
View file @
2e2622ef
...
...
@@ -430,6 +430,32 @@ static HRESULT dispex_value(DispatchEx *This, LCID lcid, WORD flags, DISPPARAMS
return
S_OK
;
}
static
HRESULT
typeinfo_invoke
(
DispatchEx
*
This
,
func_info_t
*
func
,
WORD
flags
,
DISPPARAMS
*
dp
,
VARIANT
*
res
,
EXCEPINFO
*
ei
)
{
ITypeInfo
*
ti
;
IUnknown
*
unk
;
UINT
argerr
=
0
;
HRESULT
hres
;
hres
=
get_typeinfo
(
func
->
tid
,
&
ti
);
if
(
FAILED
(
hres
))
{
ERR
(
"Could not get type info: %08x
\n
"
,
hres
);
return
hres
;
}
hres
=
IUnknown_QueryInterface
(
This
->
outer
,
tid_ids
[
func
->
tid
],
(
void
**
)
&
unk
);
if
(
FAILED
(
hres
))
{
ERR
(
"Could not get iface %s: %08x
\n
"
,
debugstr_guid
(
tid_ids
[
func
->
tid
]),
hres
);
return
E_FAIL
;
}
hres
=
ITypeInfo_Invoke
(
ti
,
unk
,
func
->
id
,
flags
,
dp
,
res
,
ei
,
&
argerr
);
IUnknown_Release
(
unk
);
return
hres
;
}
#define DISPATCHEX_THIS(iface) DEFINE_THIS(DispatchEx, IDispatchEx, iface)
static
HRESULT
WINAPI
DispatchEx_QueryInterface
(
IDispatchEx
*
iface
,
REFIID
riid
,
void
**
ppv
)
...
...
@@ -570,10 +596,7 @@ static HRESULT WINAPI DispatchEx_InvokeEx(IDispatchEx *iface, DISPID id, LCID lc
VARIANT
*
pvarRes
,
EXCEPINFO
*
pei
,
IServiceProvider
*
pspCaller
)
{
DispatchEx
*
This
=
DISPATCHEX_THIS
(
iface
);
IUnknown
*
unk
;
ITypeInfo
*
ti
;
dispex_data_t
*
data
;
UINT
argerr
=
0
;
int
min
,
max
,
n
;
HRESULT
hres
;
...
...
@@ -674,22 +697,7 @@ static HRESULT WINAPI DispatchEx_InvokeEx(IDispatchEx *iface, DISPID id, LCID lc
return
DISP_E_UNKNOWNNAME
;
}
hres
=
get_typeinfo
(
data
->
funcs
[
n
].
tid
,
&
ti
);
if
(
FAILED
(
hres
))
{
ERR
(
"Could not get type info: %08x
\n
"
,
hres
);
return
hres
;
}
hres
=
IUnknown_QueryInterface
(
This
->
outer
,
tid_ids
[
data
->
funcs
[
n
].
tid
],
(
void
**
)
&
unk
);
if
(
FAILED
(
hres
))
{
ERR
(
"Could not get iface %s: %08x
\n
"
,
debugstr_guid
(
tid_ids
[
data
->
funcs
[
n
].
tid
]),
hres
);
return
E_FAIL
;
}
hres
=
ITypeInfo_Invoke
(
ti
,
unk
,
id
,
wFlags
,
pdp
,
pvarRes
,
pei
,
&
argerr
);
IUnknown_Release
(
unk
);
return
hres
;
return
typeinfo_invoke
(
This
,
data
->
funcs
+
n
,
wFlags
,
pdp
,
pvarRes
,
pei
);
}
static
HRESULT
WINAPI
DispatchEx_DeleteMemberByName
(
IDispatchEx
*
iface
,
BSTR
bstrName
,
DWORD
grfdex
)
...
...
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