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.
This commit is contained in:
Rob Shearman 2007-12-22 01:40:05 +00:00 committed by Alexandre Julliard
parent 15d6436295
commit 7f3abe7757
1 changed files with 2 additions and 1 deletions

View File

@ -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");
}