Dan Hipschman : widl: Fix array alignment bug.
Alexandre Julliard
julliard at winehq.org
Thu Sep 27 09:27:20 CDT 2007
Module: wine
Branch: master
Commit: cbd75d3ace9a4d06a16837bea5b046ba1122aeb0
URL: http://source.winehq.org/git/wine.git/?a=commit;h=cbd75d3ace9a4d06a16837bea5b046ba1122aeb0
Author: Dan Hipschman <dsh at 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);
More information about the wine-cvs
mailing list