widl: Also compute buffer size for non-ref arrays.

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=47886
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Zebediah Figura 2019-10-04 23:43:36 -05:00 committed by Alexandre Julliard
parent dd35baa8e3
commit 8746bf094f
1 changed files with 6 additions and 9 deletions

View File

@ -3865,16 +3865,13 @@ static unsigned int get_required_buffer_size_type(
} }
case TGT_ARRAY: case TGT_ARRAY:
if (get_pointer_fc(type, attrs, toplevel_param) == FC_RP) switch (get_array_fc(type))
{ {
switch (get_array_fc(type)) case FC_SMFARRAY:
{ case FC_LGFARRAY:
case FC_SMFARRAY: return type_array_get_dim(type) *
case FC_LGFARRAY: get_required_buffer_size_type(type_array_get_element_type(type), name,
return type_array_get_dim(type) * NULL, FALSE, alignment);
get_required_buffer_size_type(type_array_get_element_type(type), name,
NULL, FALSE, alignment);
}
} }
break; break;