Commit 47519f08 authored by Dan Hipschman's avatar Dan Hipschman Committed by Alexandre Julliard

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

parent 75cc5f1e
......@@ -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);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment