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
855eb3af
Commit
855eb3af
authored
Apr 03, 2024
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
widl: Always pass the top-level attributes to detect interface pointers.
parent
bc52693f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
typegen.c
tools/widl/typegen.c
+2
-2
No files found.
tools/widl/typegen.c
View file @
855eb3af
...
@@ -1103,7 +1103,7 @@ static unsigned char get_parameter_fc( const var_t *var, int is_return, unsigned
...
@@ -1103,7 +1103,7 @@ static unsigned char get_parameter_fc( const var_t *var, int is_return, unsigned
if
(
!
is_string_type
(
var
->
attrs
,
ref
))
if
(
!
is_string_type
(
var
->
attrs
,
ref
))
buffer_size
=
get_required_buffer_size_type
(
ref
,
NULL
,
NULL
,
TRUE
,
&
alignment
);
buffer_size
=
get_required_buffer_size_type
(
ref
,
NULL
,
NULL
,
TRUE
,
&
alignment
);
switch
(
typegen_detect_type
(
ref
,
NULL
,
TDT_ALL_TYPES
))
switch
(
typegen_detect_type
(
ref
,
var
->
attrs
,
TDT_ALL_TYPES
))
{
{
case
TGT_BASIC
:
case
TGT_BASIC
:
*
flags
|=
IsSimpleRef
|
IsBasetype
;
*
flags
|=
IsSimpleRef
|
IsBasetype
;
...
@@ -2186,7 +2186,7 @@ static unsigned int write_nonsimple_pointer(FILE *file, const attr_list_t *attrs
...
@@ -2186,7 +2186,7 @@ static unsigned int write_nonsimple_pointer(FILE *file, const attr_list_t *attrs
{
{
if
(
context
==
TYPE_CONTEXT_TOPLEVELPARAM
&&
is_ptr
(
type
)
&&
pointer_type
==
FC_RP
)
if
(
context
==
TYPE_CONTEXT_TOPLEVELPARAM
&&
is_ptr
(
type
)
&&
pointer_type
==
FC_RP
)
{
{
switch
(
typegen_detect_type
(
type_pointer_get_ref_type
(
type
),
NULL
,
TDT_ALL_TYPES
))
switch
(
typegen_detect_type
(
type_pointer_get_ref_type
(
type
),
attrs
,
TDT_ALL_TYPES
))
{
{
case
TGT_STRING
:
case
TGT_STRING
:
case
TGT_POINTER
:
case
TGT_POINTER
:
...
...
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