widl: Pass the right size to MIDL_memset in generated proxy code.

This commit is contained in:
Dan Hipschman 2006-08-14 16:45:56 -07:00 committed by Alexandre Julliard
parent 75cc5f1e5e
commit 47519f08a7
1 changed files with 1 additions and 3 deletions

View File

@ -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);
}