widl: Conformant arrays have a size of 0.

Conformant arrays should cause a size of 0 to be returned from
type_memsize.
This commit is contained in:
Robert Shearman 2006-01-24 11:13:30 +01:00 committed by Alexandre Julliard
parent 73023890c5
commit 90032b2da6
1 changed files with 7 additions and 2 deletions

View File

@ -430,8 +430,13 @@ static size_t type_memsize(const type_t *t, int ptr_level, const expr_t *array)
size = 0;
}
if (array && array->is_const)
size *= array->cval;
if (array)
{
if (array->is_const)
size *= array->cval;
else
size = 0;
}
return size;
}