Rob Shearman : widl: Fix type_memsize to follow aliases so that the correct size is calculated.

Alexandre Julliard julliard at winehq.org
Tue Jun 24 06:44:35 CDT 2008


Module: wine
Branch: master
Commit: 925a7005743707c5d440a5bef2f40d410b9fa117
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=925a7005743707c5d440a5bef2f40d410b9fa117

Author: Rob Shearman <robertshearman at gmail.com>
Date:   Mon Jun 23 22:29:11 2008 +0100

widl: Fix type_memsize to follow aliases so that the correct size is calculated.

---

 tools/widl/typegen.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/tools/widl/typegen.c b/tools/widl/typegen.c
index 8d86e8a..f89f13f 100644
--- a/tools/widl/typegen.c
+++ b/tools/widl/typegen.c
@@ -814,7 +814,9 @@ size_t type_memsize(const type_t *t, unsigned int *align)
 {
     size_t size = 0;
 
-    if (t->declarray && is_conformant_array(t))
+    if (t->kind == TKIND_ALIAS)
+        size = type_memsize(t->orig, align);
+    else if (t->declarray && is_conformant_array(t))
     {
         type_memsize(t->ref, align);
         size = 0;




More information about the wine-cvs mailing list