commit | 90032b2da62ee4dd93ff71bcd16088f6948661a9 | [log] [tgz] |
---|---|---|
author | Robert Shearman <rob@codeweavers.com> | Tue Jan 24 11:13:30 2006 +0100 |
committer | Alexandre Julliard <julliard@winehq.org> | Tue Jan 24 11:13:30 2006 +0100 |
tree | 49458f031cacea90f2d01ea05e002ec56606cfe1 | |
parent | 73023890c51a914d49d7d0c7ca3ea31cca9bfbb5 [diff] |
widl: Conformant arrays have a size of 0. Conformant arrays should cause a size of 0 to be returned from type_memsize.
diff --git a/tools/widl/typegen.c b/tools/widl/typegen.c index 8f12934..85c83c4 100644 --- a/tools/widl/typegen.c +++ b/tools/widl/typegen.c
@@ -430,8 +430,13 @@ size = 0; } - if (array && array->is_const) - size *= array->cval; + if (array) + { + if (array->is_const) + size *= array->cval; + else + size = 0; + } return size; }