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
249ab3b3
Commit
249ab3b3
authored
Sep 06, 2009
by
Jacek Caban
Committed by
Alexandre Julliard
Sep 08, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Added IDispatchEx::GetNextDispID implementation.
parent
6767b740
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
50 additions
and
2 deletions
+50
-2
dispex.c
dlls/mshtml/dispex.c
+50
-2
No files found.
dlls/mshtml/dispex.c
View file @
249ab3b3
...
...
@@ -899,8 +899,56 @@ static HRESULT WINAPI DispatchEx_GetMemberName(IDispatchEx *iface, DISPID id, BS
static
HRESULT
WINAPI
DispatchEx_GetNextDispID
(
IDispatchEx
*
iface
,
DWORD
grfdex
,
DISPID
id
,
DISPID
*
pid
)
{
DispatchEx
*
This
=
DISPATCHEX_THIS
(
iface
);
FIXME
(
"(%p)->(%x %x %p)
\n
"
,
This
,
grfdex
,
id
,
pid
);
return
E_NOTIMPL
;
dispex_data_t
*
data
;
func_info_t
*
func
;
HRESULT
hres
;
TRACE
(
"(%p)->(%x %x %p)
\n
"
,
This
,
grfdex
,
id
,
pid
);
if
(
is_dynamic_dispid
(
id
))
{
DWORD
idx
=
id
-
DISPID_DYNPROP_0
;
if
(
!
This
->
dynamic_data
||
This
->
dynamic_data
->
prop_cnt
<=
idx
)
return
DISP_E_UNKNOWNNAME
;
if
(
idx
+
1
==
This
->
dynamic_data
->
prop_cnt
)
{
*
pid
=
DISPID_STARTENUM
;
return
S_FALSE
;
}
*
pid
=
id
+
1
;
return
S_OK
;
}
data
=
get_dispex_data
(
This
);
if
(
!
data
)
return
E_FAIL
;
if
(
id
==
DISPID_STARTENUM
)
{
func
=
data
->
funcs
;
}
else
{
hres
=
get_builtin_func
(
data
,
id
,
&
func
);
if
(
FAILED
(
hres
))
return
hres
;
func
++
;
}
while
(
func
<
data
->
funcs
+
data
->
func_cnt
)
{
/* FIXME: Skip hidden properties */
if
(
func
->
func_disp_idx
==
-
1
)
{
*
pid
=
func
->
id
;
return
S_OK
;
}
func
++
;
}
if
(
This
->
dynamic_data
&&
This
->
dynamic_data
->
prop_cnt
)
{
*
pid
=
DISPID_DYNPROP_0
;
return
S_OK
;
}
*
pid
=
DISPID_STARTENUM
;
return
S_FALSE
;
}
static
HRESULT
WINAPI
DispatchEx_GetNameSpaceParent
(
IDispatchEx
*
iface
,
IUnknown
**
ppunk
)
...
...
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