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
96a5def6
Commit
96a5def6
authored
May 24, 2011
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
widl: Also compute buffer size for non-ref pointers.
parent
8f156e26
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
3 deletions
+9
-3
typegen.c
tools/widl/typegen.c
+9
-3
No files found.
tools/widl/typegen.c
View file @
96a5def6
...
...
@@ -3185,13 +3185,19 @@ static unsigned int get_required_buffer_size_type(
break
;
case
TGT_POINTER
:
if
(
get_pointer_fc
(
type
,
attrs
,
toplevel_param
)
==
RPC_FC_RP
)
{
unsigned
int
size
,
align
;
const
type_t
*
ref
=
type_pointer_get_ref
(
type
);
if
(
is_string_type
(
attrs
,
ref
))
break
;
return
get_required_buffer_size_type
(
ref
,
name
,
ref
->
attrs
,
FALSE
,
alignment
);
if
(
!
(
size
=
get_required_buffer_size_type
(
ref
,
name
,
NULL
,
FALSE
,
&
align
)))
break
;
if
(
get_pointer_fc
(
type
,
attrs
,
toplevel_param
)
!=
RPC_FC_RP
)
{
size
+=
4
+
align
;
align
=
4
;
}
*
alignment
=
align
;
return
size
;
}
break
;
case
TGT_ARRAY
:
if
(
get_pointer_fc
(
type
,
attrs
,
toplevel_param
)
==
RPC_FC_RP
)
...
...
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