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
0d4e1bc3
Commit
0d4e1bc3
authored
Feb 01, 2006
by
Robert Shearman
Committed by
Alexandre Julliard
Feb 01, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
widl: Fix a SEGV when using arrays declared using a pointer and
attributes, instead of array indices (reported by Eric Kohl).
parent
ebc65aea
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
typegen.c
tools/widl/typegen.c
+3
-3
No files found.
tools/widl/typegen.c
View file @
0d4e1bc3
...
...
@@ -639,7 +639,7 @@ static size_t write_array_tfs(FILE *file, const attr_t *attrs,
/* FIXME: need to analyse type for pointers */
if
(
NEXT_LINK
(
array
))
/* multi-dimensional array */
if
(
array
&&
NEXT_LINK
(
array
))
/* multi-dimensional array */
{
error
(
"write_array_tfs: Multi-dimensional arrays not implemented yet (param %s)
\n
"
,
name
);
return
0
;
...
...
@@ -1170,7 +1170,7 @@ void marshall_arguments(FILE *file, int indent, func_t *func,
int
has_length
=
length_is
&&
(
length_is
->
type
!=
EXPR_VOID
);
int
has_size
=
(
size_is
&&
(
size_is
->
type
!=
EXPR_VOID
))
||
!
var
->
array
->
is_const
;
if
(
NEXT_LINK
(
var
->
array
))
/* multi-dimensional array */
if
(
var
->
array
&&
NEXT_LINK
(
var
->
array
))
/* multi-dimensional array */
array_type
=
"ComplexArray"
;
else
{
...
...
@@ -1364,7 +1364,7 @@ void unmarshall_arguments(FILE *file, int indent, func_t *func,
int
has_length
=
length_is
&&
(
length_is
->
type
!=
EXPR_VOID
);
int
has_size
=
(
size_is
&&
(
size_is
->
type
!=
EXPR_VOID
))
||
!
var
->
array
->
is_const
;
if
(
NEXT_LINK
(
var
->
array
))
/* multi-dimensional array */
if
(
var
->
array
&&
NEXT_LINK
(
var
->
array
))
/* multi-dimensional array */
array_type
=
"ComplexArray"
;
else
{
...
...
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