widl: Initialise the temporary variable to 0 for parameters with more than one level of indirection.

This commit is contained in:
Robert Shearman 2006-03-31 12:50:10 +01:00 committed by Alexandre Julliard
parent d82bb4ade9
commit 62eb9f4b0c
1 changed files with 4 additions and 1 deletions

View File

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