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
a376b86d
Commit
a376b86d
authored
Aug 21, 2009
by
Huw Davies
Committed by
Alexandre Julliard
Aug 21, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
widl: The alignment written for USER_MARSHAL types is the wire-type alignment.
parent
e4e21193
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
typegen.c
tools/widl/typegen.c
+4
-2
No files found.
tools/widl/typegen.c
View file @
a376b86d
...
...
@@ -1476,13 +1476,15 @@ static void write_user_tfs(FILE *file, type_t *type, unsigned int *tfsoff)
unsigned
int
align
=
0
,
ualign
=
0
;
const
char
*
name
=
NULL
;
type_t
*
utype
=
get_user_type
(
type
,
&
name
);
unsigned
int
usize
=
user_type_has_variable_size
(
utype
)
?
0
:
type_memsize
(
utype
,
&
ualign
);
unsigned
int
usize
=
type_memsize
(
utype
,
&
ualign
);
unsigned
int
size
=
type_memsize
(
type
,
&
align
);
unsigned
short
funoff
=
user_type_offset
(
name
);
short
reloff
;
guard_rec
(
type
);
if
(
user_type_has_variable_size
(
utype
))
usize
=
0
;
if
(
type_get_type
(
utype
)
==
TYPE_BASIC
||
type_get_type
(
utype
)
==
TYPE_ENUM
)
{
...
...
@@ -1518,7 +1520,7 @@ static void write_user_tfs(FILE *file, type_t *type, unsigned int *tfsoff)
print_start_tfs_comment
(
file
,
type
,
start
);
print_file
(
file
,
2
,
"0x%x,
\t
/* FC_USER_MARSHAL */
\n
"
,
RPC_FC_USER_MARSHAL
);
print_file
(
file
,
2
,
"0x%x,
\t
/* Alignment= %d, Flags= %02x */
\n
"
,
flags
|
(
align
-
1
),
align
-
1
,
flags
);
flags
|
(
ualign
-
1
),
u
align
-
1
,
flags
);
print_file
(
file
,
2
,
"NdrFcShort(0x%hx),
\t
/* Function offset= %hu */
\n
"
,
funoff
,
funoff
);
print_file
(
file
,
2
,
"NdrFcShort(0x%hx),
\t
/* %u */
\n
"
,
size
,
size
);
print_file
(
file
,
2
,
"NdrFcShort(0x%hx),
\t
/* %u */
\n
"
,
usize
,
usize
);
...
...
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