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

This commit is contained in:
Rob Shearman 2008-06-23 22:29:11 +01:00 committed by Alexandre Julliard
parent 4997f1849b
commit 925a700574
1 changed files with 3 additions and 1 deletions

View File

@ -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;