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
b3dde47e
Commit
b3dde47e
authored
Jun 23, 2008
by
Rob Shearman
Committed by
Alexandre Julliard
Jun 24, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
widl: Fix crash in find_array_or_string_in_struct if the structure or union has no fields or cases.
parent
ada3ca6f
Show 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 @
b3dde47e
...
...
@@ -1721,14 +1721,20 @@ static size_t write_array_tfs(FILE *file, const attr_list_t *attrs, type_t *type
static
const
var_t
*
find_array_or_string_in_struct
(
const
type_t
*
type
)
{
const
var_t
*
last_field
=
LIST_ENTRY
(
list_tail
(
type
->
fields_or_args
),
const
var_t
,
entry
);
const
type_t
*
ft
=
last_field
->
type
;
const
var_t
*
last_field
;
const
type_t
*
ft
;
if
(
!
type
->
fields_or_args
||
list_empty
(
type
->
fields_or_args
))
return
NULL
;
last_field
=
LIST_ENTRY
(
list_tail
(
type
->
fields_or_args
),
const
var_t
,
entry
);
ft
=
last_field
->
type
;
if
(
ft
->
declarray
&&
is_conformant_array
(
ft
))
return
last_field
;
if
(
ft
->
type
==
RPC_FC_CSTRUCT
||
ft
->
type
==
RPC_FC_CPSTRUCT
||
ft
->
type
==
RPC_FC_CVSTRUCT
)
return
find_array_or_string_in_struct
(
last_field
->
type
);
return
find_array_or_string_in_struct
(
ft
);
else
return
NULL
;
}
...
...
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