Rob Shearman : widl: Fix the generation of temporary variables for declared arrays.
Alexandre Julliard
julliard at winehq.org
Mon Dec 24 14:21:33 CST 2007
Module: wine
Branch: master
Commit: 7f3abe7757d799052bfb0dd2bd2e3260a8e7f18f
URL: http://source.winehq.org/git/wine.git/?a=commit;h=7f3abe7757d799052bfb0dd2bd2e3260a8e7f18f
Author: Rob Shearman <rob at codeweavers.com>
Date: Sat Dec 22 01:40:05 2007 +0000
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.
---
tools/widl/typegen.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/tools/widl/typegen.c b/tools/widl/typegen.c
index d245c97..ea7e317 100644
--- a/tools/widl/typegen.c
+++ b/tools/widl/typegen.c
@@ -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");
}
More information about the wine-cvs
mailing list