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
8e750b0e
Commit
8e750b0e
authored
Nov 12, 2009
by
Rob Shearman
Committed by
Alexandre Julliard
Nov 12, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
widl: Include range types in constant BufferLength calculation for server function.
parent
03f87bc1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
3 deletions
+6
-3
typegen.c
tools/widl/typegen.c
+5
-3
typegen.h
tools/widl/typegen.h
+1
-0
No files found.
tools/widl/typegen.c
View file @
8e750b0e
...
...
@@ -216,11 +216,13 @@ enum typegen_type typegen_detect_type(const type_t *type, const attr_list_t *att
switch
(
type_get_type
(
type
))
{
case
TYPE_BASIC
:
if
(
is_attr
(
attrs
,
ATTR_RANGE
)
||
is_aliaschain_attr
(
type
,
ATTR_RANGE
))
if
(
!
(
flags
&
TDT_IGNORE_RANGES
)
&&
(
is_attr
(
attrs
,
ATTR_RANGE
)
||
is_aliaschain_attr
(
type
,
ATTR_RANGE
)))
return
TGT_RANGE
;
return
TGT_BASIC
;
case
TYPE_ENUM
:
if
(
is_attr
(
attrs
,
ATTR_RANGE
)
||
is_aliaschain_attr
(
type
,
ATTR_RANGE
))
if
(
!
(
flags
&
TDT_IGNORE_RANGES
)
&&
(
is_attr
(
attrs
,
ATTR_RANGE
)
||
is_aliaschain_attr
(
type
,
ATTR_RANGE
)))
return
TGT_RANGE
;
return
TGT_ENUM
;
case
TYPE_POINTER
:
...
...
@@ -3012,7 +3014,7 @@ static unsigned int get_required_buffer_size_type(
const
type_t
*
type
,
const
char
*
name
,
const
attr_list_t
*
attrs
,
int
toplevel_param
,
unsigned
int
*
alignment
)
{
*
alignment
=
0
;
switch
(
typegen_detect_type
(
type
,
NULL
,
TDT_IGNORE_STRINGS
))
switch
(
typegen_detect_type
(
type
,
NULL
,
TDT_IGNORE_STRINGS
|
TDT_IGNORE_RANGES
))
{
case
TGT_USER_TYPE
:
{
...
...
tools/widl/typegen.h
View file @
8e750b0e
...
...
@@ -40,6 +40,7 @@ enum typegen_detect_flags
{
TDT_ALL_TYPES
=
1
<<
0
,
TDT_IGNORE_STRINGS
=
1
<<
1
,
TDT_IGNORE_RANGES
=
1
<<
2
,
};
enum
typegen_type
...
...
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