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
fc7681a8
Commit
fc7681a8
authored
Jul 03, 2009
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
widl: Skip the existing correlation descriptor on unencapsulated unions when…
widl: Skip the existing correlation descriptor on unencapsulated unions when generating a different one.
parent
ab527a6e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
typegen.c
tools/widl/typegen.c
+5
-1
No files found.
tools/widl/typegen.c
View file @
fc7681a8
...
...
@@ -1521,8 +1521,11 @@ static void write_descriptors(FILE *file, type_t *type, unsigned int *tfsoff)
type_t
*
ft
=
f
->
type
;
if
(
type_get_type
(
ft
)
==
TYPE_UNION
&&
is_attr
(
f
->
attrs
,
ATTR_SWITCHIS
))
{
short
reloff
;
unsigned
int
absoff
=
ft
->
typestring_offset
;
short
reloff
=
absoff
-
(
*
tfsoff
+
6
);
if
(
is_attr
(
ft
->
attrs
,
ATTR_SWITCHTYPE
))
absoff
+=
8
;
/* we already have a corr descr, skip it */
reloff
=
absoff
-
(
*
tfsoff
+
6
);
print_file
(
file
,
0
,
"/* %d */
\n
"
,
*
tfsoff
);
print_file
(
file
,
2
,
"0x%x,
\t
/* FC_NON_ENCAPSULATED_UNION */
\n
"
,
RPC_FC_NON_ENCAPSULATED_UNION
);
print_file
(
file
,
2
,
"0x%x,
\t
/* FIXME: always FC_LONG */
\n
"
,
RPC_FC_LONG
);
...
...
@@ -2509,6 +2512,7 @@ static unsigned int write_union_tfs(FILE *file, type_t *type, unsigned int *tfso
*
tfsoff
+=
write_conf_or_var_desc
(
file
,
NULL
,
*
tfsoff
,
st
,
&
dummy_expr
);
print_file
(
file
,
2
,
"NdrFcShort(0x2),
\t
/* Offset= 2 (%u) */
\n
"
,
*
tfsoff
+
2
);
*
tfsoff
+=
2
;
print_file
(
file
,
0
,
"/* %u */
\n
"
,
*
tfsoff
);
}
print_file
(
file
,
2
,
"NdrFcShort(0x%hx),
\t
/* %d */
\n
"
,
size
,
size
);
...
...
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