mirror of
git://source.winehq.org/git/wine.git
synced 2024-11-02 13:27:35 +00:00
widl: Pass the right size to MIDL_memset in generated proxy code.
This commit is contained in:
parent
75cc5f1e5e
commit
47519f08a7
1 changed files with 1 additions and 3 deletions
|
@ -172,10 +172,8 @@ static void clear_output_vars( var_t *arg )
|
|||
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( ", arg->name );
|
||||
print_proxy( "MIDL_memset( %s, 0, sizeof( *%s ));\n", arg->name, arg->name );
|
||||
indent--;
|
||||
write_type(proxy, arg->type, arg, arg->tname);
|
||||
fprintf( proxy, " ));\n" );
|
||||
}
|
||||
arg = PREV_LINK(arg);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue