Skip to content
Snippets Groups Projects
Commit 47519f08 authored by Dan Hipschman's avatar Dan Hipschman Committed by Alexandre Julliard
Browse files

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

parent 75cc5f1e
No related branches found
No related tags found
No related merge requests found
......@@ -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);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment