diff --git a/tools/widl/typegen.c b/tools/widl/typegen.c index 8d86e8a8d58..f89f13fb9b8 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;