Module: wine Branch: master Commit: cbd75d3ace9a4d06a16837bea5b046ba1122aeb0 URL: http://source.winehq.org/git/wine.git/?a=commit;h=cbd75d3ace9a4d06a16837bea5...
Author: Dan Hipschman dsh@linux.ucla.edu Date: Wed Sep 26 17:34:25 2007 -0700
widl: Fix array alignment bug.
---
tools/widl/typegen.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/tools/widl/typegen.c b/tools/widl/typegen.c index 205529d..c2e16e5 100644 --- a/tools/widl/typegen.c +++ b/tools/widl/typegen.c @@ -1469,6 +1469,7 @@ static size_t write_array_tfs(FILE *file, const attr_list_t *attrs, type_t *type if (write_embedded_types(file, attrs, type->ref, name, FALSE, typestring_offset)) has_pointer = TRUE;
+ align = 0; size = type_memsize(type, &align); if (size == 0) /* conformant array */ size = type_memsize(type->ref, &align);