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
bb4227d6
Commit
bb4227d6
authored
Jul 05, 2016
by
Jacek Caban
Committed by
Alexandre Julliard
Jul 06, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Preprocess typelib data in init_dispex.
Signed-off-by:
Jacek Caban
<
jacek@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
392a4106
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
18 deletions
+13
-18
dispex.c
dlls/mshtml/dispex.c
+13
-18
No files found.
dlls/mshtml/dispex.c
View file @
bb4227d6
...
...
@@ -351,7 +351,7 @@ static int func_name_cmp(const void *p1, const void *p2)
return
strcmpiW
((
*
(
func_info_t
*
const
*
)
p1
)
->
name
,
(
*
(
func_info_t
*
const
*
)
p2
)
->
name
);
}
static
dispex_data_t
*
preprocess_dispex_data
(
DispatchEx
*
This
)
static
dispex_data_t
*
preprocess_dispex_data
(
const
dispex_static_data_t
*
desc
)
{
const
tid_t
*
tid
;
dispex_data_t
*
data
;
...
...
@@ -359,10 +359,8 @@ static dispex_data_t *preprocess_dispex_data(DispatchEx *This)
ITypeInfo
*
dti
;
HRESULT
hres
;
TRACE
(
"(%p)
\n
"
,
This
);
if
(
This
->
data
->
disp_tid
)
{
hres
=
get_typeinfo
(
This
->
data
->
disp_tid
,
&
dti
);
if
(
desc
->
disp_tid
)
{
hres
=
get_typeinfo
(
desc
->
disp_tid
,
&
dti
);
if
(
FAILED
(
hres
))
{
ERR
(
"Could not get disp type info: %08x
\n
"
,
hres
);
return
NULL
;
...
...
@@ -385,14 +383,14 @@ static dispex_data_t *preprocess_dispex_data(DispatchEx *This)
}
list_add_tail
(
&
dispex_data_list
,
&
data
->
entry
);
for
(
tid
=
This
->
data
->
iface_tids
;
*
tid
;
tid
++
)
{
for
(
tid
=
desc
->
iface_tids
;
*
tid
;
tid
++
)
{
hres
=
process_interface
(
data
,
*
tid
,
dti
);
if
(
FAILED
(
hres
))
break
;
}
if
(
This
->
data
->
additional_tid
)
process_interface
(
data
,
This
->
data
->
additional_tid
,
NULL
);
if
(
desc
->
additional_tid
)
process_interface
(
data
,
desc
->
additional_tid
,
NULL
);
if
(
!
data
->
func_cnt
)
{
heap_free
(
data
->
funcs
);
...
...
@@ -470,16 +468,6 @@ HRESULT get_dispids(tid_t tid, DWORD *ret_size, DISPID **ret)
static
dispex_data_t
*
get_dispex_data
(
DispatchEx
*
This
)
{
if
(
This
->
data
->
data
)
return
This
->
data
->
data
;
EnterCriticalSection
(
&
cs_dispex_static_data
);
if
(
!
This
->
data
->
data
)
This
->
data
->
data
=
preprocess_dispex_data
(
This
);
LeaveCriticalSection
(
&
cs_dispex_static_data
);
return
This
->
data
->
data
;
}
...
...
@@ -1777,6 +1765,13 @@ void release_dispex(DispatchEx *This)
void
init_dispex
(
DispatchEx
*
dispex
,
IUnknown
*
outer
,
dispex_static_data_t
*
data
)
{
if
(
!
data
->
data
)
{
EnterCriticalSection
(
&
cs_dispex_static_data
);
if
(
!
data
->
data
)
data
->
data
=
preprocess_dispex_data
(
data
);
LeaveCriticalSection
(
&
cs_dispex_static_data
);
}
dispex
->
IDispatchEx_iface
.
lpVtbl
=
&
DispatchExVtbl
;
dispex
->
outer
=
outer
;
dispex
->
data
=
data
;
...
...
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