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
ca22457d
Commit
ca22457d
authored
Jul 27, 2011
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
widl: Don't set base types to 0 on proxy entry.
parent
0d76bb7e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
6 deletions
+8
-6
proxy.c
tools/widl/proxy.c
+8
-6
No files found.
tools/widl/proxy.c
View file @
ca22457d
...
...
@@ -111,12 +111,14 @@ static void clear_output_vars( const var_list_t *args )
if
(
!
args
)
return
;
LIST_FOR_EACH_ENTRY
(
arg
,
args
,
const
var_t
,
entry
)
{
if
(
is_attr
(
arg
->
attrs
,
ATTR_OUT
)
&&
!
is_attr
(
arg
->
attrs
,
ATTR_IN
))
{
print_proxy
(
"if(%s)
\n
"
,
arg
->
name
);
indent
++
;
print_proxy
(
"MIDL_memset( %s, 0, sizeof( *%s ));
\n
"
,
arg
->
name
,
arg
->
name
);
indent
--
;
}
if
(
is_attr
(
arg
->
attrs
,
ATTR_IN
))
continue
;
if
(
!
is_attr
(
arg
->
attrs
,
ATTR_OUT
))
continue
;
if
(
is_ptr
(
arg
->
type
))
{
if
(
type_get_type
(
type_pointer_get_ref
(
arg
->
type
))
==
TYPE_BASIC
)
continue
;
if
(
type_get_type
(
type_pointer_get_ref
(
arg
->
type
))
==
TYPE_ENUM
)
continue
;
}
print_proxy
(
"if (%s) MIDL_memset( %s, 0, sizeof( *%s ));
\n
"
,
arg
->
name
,
arg
->
name
,
arg
->
name
);
}
}
...
...
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