Commit 7f3abe77 authored by Rob Shearman's avatar Rob Shearman Committed by Alexandre Julliard

widl: Fix the generation of temporary variables for declared arrays.

These need to include their array part so use var->type instead of var->ref->type.
parent 15d64362
......@@ -3073,7 +3073,8 @@ void declare_stub_args( FILE *file, int indent, const func_t *func )
if (!in_attr && !var->type->size_is && !is_string)
{
print_file(file, indent, "");
write_type_decl(file, var->type->ref, "_W%u", i++);
write_type_decl(file, var->type->declarray ? var->type : var->type->ref,
"_W%u", i++);
fprintf(file, ";\n");
}
......
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