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
0359b30b
Commit
0359b30b
authored
Aug 01, 2011
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
widl: Only register interfaces when the factory buffer is known.
parent
b6d2aeee
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
12 deletions
+3
-12
register.c
tools/widl/register.c
+3
-12
No files found.
tools/widl/register.c
View file @
0359b30b
...
...
@@ -80,7 +80,7 @@ static const type_t *find_ps_factory( const statement_list_t *stmts )
static
int
write_interface
(
const
type_t
*
iface
,
const
type_t
*
ps_factory
)
{
const
UUID
*
uuid
=
get_attrp
(
iface
->
attrs
,
ATTR_UUID
);
const
UUID
*
ps_uuid
=
ps_factory
?
get_attrp
(
ps_factory
->
attrs
,
ATTR_UUID
)
:
NULL
;
const
UUID
*
ps_uuid
=
get_attrp
(
ps_factory
->
attrs
,
ATTR_UUID
)
;
if
(
!
uuid
)
return
0
;
if
(
!
is_object
(
iface
))
return
0
;
...
...
@@ -94,8 +94,7 @@ static int write_interface( const type_t *iface, const type_t *ps_factory )
put_str
(
indent
,
"{
\n
"
);
indent
++
;
put_str
(
indent
,
"NumMethods = s %u
\n
"
,
count_methods
(
iface
));
put_str
(
indent
,
"ProxyStubClsid32 = s '%s'
\n
"
,
ps_uuid
?
format_uuid
(
ps_uuid
)
:
"%CLSID_PSFactoryBuffer%"
);
put_str
(
indent
,
"ProxyStubClsid32 = s '%s'
\n
"
,
format_uuid
(
ps_uuid
));
indent
--
;
put_str
(
indent
,
"}
\n
"
);
return
1
;
...
...
@@ -222,7 +221,6 @@ static inline void put_string( const char *str )
void
write_regscript
(
const
statement_list_t
*
stmts
)
{
int
count
;
const
type_t
*
ps_factory
;
if
(
!
do_regscript
)
return
;
...
...
@@ -236,18 +234,11 @@ void write_regscript( const statement_list_t *stmts )
put_str
(
indent
,
"NoRemove Interface
\n
"
);
put_str
(
indent
++
,
"{
\n
"
);
ps_factory
=
find_ps_factory
(
stmts
);
count
=
write_interfaces
(
stmts
,
ps_factory
);
if
(
ps_factory
)
write_interfaces
(
stmts
,
ps_factory
);
put_str
(
--
indent
,
"}
\n
"
);
put_str
(
indent
,
"NoRemove CLSID
\n
"
);
put_str
(
indent
++
,
"{
\n
"
);
if
(
count
&&
!
ps_factory
)
{
put_str
(
indent
,
"ForceRemove '%%CLSID_PSFactoryBuffer%%' = s 'PSFactoryBuffer'
\n
"
);
put_str
(
indent
++
,
"{
\n
"
);
put_str
(
indent
,
"InprocServer32 = s '%%MODULE%%' { val ThreadingModel = s 'Both' }
\n
"
);
put_str
(
--
indent
,
"}
\n
"
);
}
write_coclasses
(
stmts
,
NULL
);
put_str
(
--
indent
,
"}
\n
"
);
...
...
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