Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
90c7acf8
Commit
90c7acf8
authored
Dec 23, 2010
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
widl: Allow specifying a class version outside of a typelib too.
parent
fc3114ca
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
register.c
tools/widl/register.c
+3
-3
No files found.
tools/widl/register.c
View file @
90c7acf8
...
...
@@ -121,6 +121,7 @@ static int write_coclass( const type_t *class, const typelib_t *typelib )
const
char
*
progid
=
get_attrp
(
class
->
attrs
,
ATTR_PROGID
);
const
char
*
vi_progid
=
get_attrp
(
class
->
attrs
,
ATTR_VIPROGID
);
const
char
*
threading
=
get_coclass_threading
(
class
);
unsigned
int
version
=
get_attrv
(
class
->
attrs
,
ATTR_VERSION
);
if
(
!
uuid
)
return
0
;
if
(
typelib
&&
!
threading
)
return
0
;
...
...
@@ -134,11 +135,10 @@ static int write_coclass( const type_t *class, const typelib_t *typelib )
if
(
typelib
)
{
const
UUID
*
typelib_uuid
=
get_attrp
(
typelib
->
attrs
,
ATTR_UUID
);
unsigned
int
version
=
get_attrv
(
class
->
attrs
,
ATTR_VERSION
);
if
(
!
version
)
version
=
get_attrv
(
typelib
->
attrs
,
ATTR_VERSION
);
put_str
(
indent
,
"TypeLib = s '%s'
\n
"
,
format_uuid
(
typelib_uuid
));
put_str
(
indent
,
"Version = s '%u.%u'
\n
"
,
MAJORVERSION
(
version
),
MINORVERSION
(
version
)
);
if
(
!
version
)
version
=
get_attrv
(
typelib
->
attrs
,
ATTR_VERSION
);
}
if
(
version
)
put_str
(
indent
,
"Version = s '%u.%u'
\n
"
,
MAJORVERSION
(
version
),
MINORVERSION
(
version
)
);
if
(
vi_progid
)
put_str
(
indent
,
"VersionIndependentProgId = s '%s'
\n
"
,
vi_progid
);
put_str
(
--
indent
,
"}
\n
"
);
return
1
;
...
...
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