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
323cff8f
Commit
323cff8f
authored
May 01, 2024
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
widl: Fix correlation offset for unencapsulated unions in interpreted mode.
parent
dc8395f2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
typegen.c
tools/widl/typegen.c
+2
-2
No files found.
tools/widl/typegen.c
View file @
323cff8f
...
...
@@ -2618,7 +2618,7 @@ static void write_member_type(FILE *file, const type_t *cont,
if
(
type_get_type
(
type
)
==
TYPE_UNION
&&
is_attr
(
attrs
,
ATTR_SWITCHIS
))
{
absoff
=
*
corroff
;
*
corroff
+=
8
;
*
corroff
+=
interpreted_mode
?
10
:
8
;
}
else
{
...
...
@@ -2708,7 +2708,7 @@ static void write_descriptors(FILE *file, type_t *type, unsigned int *tfsoff)
if
(
!
fc
)
fc
=
FC_LONG
;
if
(
is_attr
(
ft
->
attrs
,
ATTR_SWITCHTYPE
))
absoff
+=
8
;
/* we already have a corr descr, skip it */
absoff
+=
interpreted_mode
?
10
:
8
;
/* we already have a corr descr, skip it */
print_file
(
file
,
0
,
"/* %d */
\n
"
,
*
tfsoff
);
print_file
(
file
,
2
,
"0x%x,
\t
/* FC_NON_ENCAPSULATED_UNION */
\n
"
,
FC_NON_ENCAPSULATED_UNION
);
print_file
(
file
,
2
,
"0x%x,
\t
/* %s */
\n
"
,
fc
,
string_of_type
(
fc
));
...
...
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