Commit 90032b2d authored by Robert Shearman's avatar Robert Shearman Committed by Alexandre Julliard

widl: Conformant arrays have a size of 0.

Conformant arrays should cause a size of 0 to be returned from type_memsize.
parent 73023890
......@@ -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)
if (array)
{
if (array->is_const)
size *= array->cval;
else
size = 0;
}
return size;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment