Robert Shearman : widl: Conformant arrays have a size of 0.
Alexandre Julliard
julliard at wine.codeweavers.com
Tue Jan 24 06:45:17 CST 2006
Module: wine
Branch: refs/heads/master
Commit: 90032b2da62ee4dd93ff71bcd16088f6948661a9
URL: http://source.winehq.org/git/?p=wine.git;a=commit;h=90032b2da62ee4dd93ff71bcd16088f6948661a9
Author: Robert Shearman <rob at codeweavers.com>
Date: Tue Jan 24 11:13:30 2006 +0100
widl: Conformant arrays have a size of 0.
Conformant arrays should cause a size of 0 to be returned from
type_memsize.
---
tools/widl/typegen.c | 9 +++++++--
1 files changed, 7 insertions(+), 2 deletions(-)
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 @@ static size_t type_memsize(const type_t
size = 0;
}
- if (array && array->is_const)
- size *= array->cval;
+ if (array)
+ {
+ if (array->is_const)
+ size *= array->cval;
+ else
+ size = 0;
+ }
return size;
}
More information about the wine-cvs
mailing list