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
de74e1ae
Commit
de74e1ae
authored
Apr 18, 2008
by
Jacek Caban
Committed by
Alexandre Julliard
Apr 21, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Added IDispatchEx::InvokeEx implementation.
parent
b81818e7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
54 additions
and
2 deletions
+54
-2
dispex.c
dlls/mshtml/dispex.c
+54
-2
No files found.
dlls/mshtml/dispex.c
View file @
de74e1ae
...
...
@@ -374,8 +374,60 @@ static HRESULT WINAPI DispatchEx_InvokeEx(IDispatchEx *iface, DISPID id, LCID lc
VARIANT
*
pvarRes
,
EXCEPINFO
*
pei
,
IServiceProvider
*
pspCaller
)
{
DispatchEx
*
This
=
DISPATCHEX_THIS
(
iface
);
FIXME
(
"(%p)->(%x %x %x %p %p %p %p)
\n
"
,
This
,
id
,
lcid
,
wFlags
,
pdp
,
pvarRes
,
pei
,
pspCaller
);
return
E_NOTIMPL
;
IUnknown
*
unk
;
ITypeInfo
*
ti
;
dispex_data_t
*
data
;
UINT
argerr
=
0
;
int
min
,
max
,
n
;
HRESULT
hres
;
TRACE
(
"(%p)->(%x %x %x %p %p %p %p)
\n
"
,
This
,
id
,
lcid
,
wFlags
,
pdp
,
pvarRes
,
pei
,
pspCaller
);
if
(
wFlags
==
DISPATCH_CONSTRUCT
)
{
FIXME
(
"DISPATCH_CONSTRUCT not implemented
\n
"
);
return
E_NOTIMPL
;
}
data
=
get_dispex_data
(
This
);
if
(
!
data
)
return
E_FAIL
;
min
=
0
;
max
=
data
->
func_cnt
-
1
;
while
(
min
<=
max
)
{
n
=
(
min
+
max
)
/
2
;
if
(
data
->
funcs
[
n
].
id
==
id
)
break
;
if
(
data
->
funcs
[
n
].
id
<
id
)
min
=
n
+
1
;
else
max
=
n
-
1
;
}
if
(
min
>
max
)
{
WARN
(
"invalid id %x
\n
"
,
id
);
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: %08x
\n
"
,
hres
);
return
E_FAIL
;
}
hres
=
ITypeInfo_Invoke
(
ti
,
unk
,
id
,
wFlags
,
pdp
,
pvarRes
,
pei
,
&
argerr
);
IUnknown_Release
(
unk
);
return
hres
;
}
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