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
bde38beb
Commit
bde38beb
authored
Apr 02, 2014
by
Dmitry Timoshkov
Committed by
Alexandre Julliard
Apr 02, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
widl: Avoid generating negative offsets for conformant arrays of strings.
parent
1845d10c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
0 deletions
+14
-0
typegen.c
tools/widl/typegen.c
+14
-0
No files found.
tools/widl/typegen.c
View file @
bde38beb
...
...
@@ -3581,12 +3581,26 @@ static unsigned int write_type_tfs(FILE *file, int indent,
case
TGT_POINTER
:
{
enum
type_context
ref_context
;
type_t
*
ref
=
type_pointer_get_ref
(
type
);
if
(
context
==
TYPE_CONTEXT_TOPLEVELPARAM
)
ref_context
=
TYPE_CONTEXT_PARAM
;
else
if
(
context
==
TYPE_CONTEXT_CONTAINER_NO_POINTERS
)
ref_context
=
TYPE_CONTEXT_CONTAINER
;
else
ref_context
=
context
;
if
(
is_string_type
(
attrs
,
type
)
&&
is_conformant_array
(
ref
))
{
if
(
context
!=
TYPE_CONTEXT_CONTAINER_NO_POINTERS
)
write_pointer_tfs
(
file
,
attrs
,
type
,
*
typeformat_offset
+
4
,
context
,
typeformat_offset
);
offset
=
write_type_tfs
(
file
,
indent
,
attrs
,
ref
,
name
,
ref_context
,
typeformat_offset
);
if
(
context
==
TYPE_CONTEXT_CONTAINER_NO_POINTERS
)
return
0
;
return
offset
;
}
offset
=
write_type_tfs
(
file
,
indent
,
attrs
,
type_pointer_get_ref
(
type
),
name
,
ref_context
,
typeformat_offset
);
if
(
context
==
TYPE_CONTEXT_CONTAINER_NO_POINTERS
)
...
...
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