Commit 62eb9f4b authored by Robert Shearman's avatar Robert Shearman Committed by Alexandre Julliard

widl: Initialise the temporary variable to 0 for parameters with more than one…

widl: Initialise the temporary variable to 0 for parameters with more than one level of indirection.
parent d82bb4ad
......@@ -167,7 +167,10 @@ static void assign_out_args(const func_t *func)
}
else
{
fprintf(server, " = &_W%u;\n", i++);
fprintf(server, " = &_W%u;\n", i);
if (var->ptr_level > 1)
print_server("_W%u = 0;\n", i);
i++;
}
sep = 1;
......
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