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
318931bd
Commit
318931bd
authored
Nov 12, 2013
by
Jacek Caban
Committed by
Alexandre Julliard
Nov 12, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
widl: Include resource id in typelib path if not default.
parent
a5975bb6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
register.c
tools/widl/register.c
+7
-2
No files found.
tools/widl/register.c
View file @
318931bd
...
...
@@ -280,6 +280,8 @@ void output_typelib_regscript( const typelib_t *typelib )
const
expr_t
*
lcid_expr
=
get_attrp
(
typelib
->
attrs
,
ATTR_LIBLCID
);
unsigned
int
version
=
get_attrv
(
typelib
->
attrs
,
ATTR_VERSION
);
unsigned
int
flags
=
0
;
char
id_part
[
12
]
=
""
;
expr_t
*
expr
;
if
(
is_attr
(
typelib
->
attrs
,
ATTR_RESTRICTED
))
flags
|=
1
;
/* LIBFLAG_FRESTRICTED */
if
(
is_attr
(
typelib
->
attrs
,
ATTR_CONTROL
))
flags
|=
2
;
/* LIBFLAG_FCONTROL */
...
...
@@ -295,8 +297,11 @@ void output_typelib_regscript( const typelib_t *typelib )
put_str
(
indent
,
"'%u.%u' = s '%s'
\n
"
,
MAJORVERSION
(
version
),
MINORVERSION
(
version
),
descr
?
descr
:
typelib
->
name
);
put_str
(
indent
++
,
"{
\n
"
);
put_str
(
indent
,
"'%x' { %s = s '%%MODULE%%' }
\n
"
,
lcid_expr
?
lcid_expr
->
cval
:
0
,
typelib_kind
==
SYS_WIN64
?
"win64"
:
"win32"
);
expr
=
get_attrp
(
typelib
->
attrs
,
ATTR_ID
);
if
(
expr
)
sprintf
(
id_part
,
"
\\
%d"
,
expr
->
cval
);
put_str
(
indent
,
"'%x' { %s = s '%%MODULE%%%s' }
\n
"
,
lcid_expr
?
lcid_expr
->
cval
:
0
,
typelib_kind
==
SYS_WIN64
?
"win64"
:
"win32"
,
id_part
);
put_str
(
indent
,
"FLAGS = s '%u'
\n
"
,
flags
);
put_str
(
--
indent
,
"}
\n
"
);
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