widl: Use IsSimpleRef only for explicitly declared arrays.

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=47285
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
(cherry picked from commit 02976b655a)
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
oldstable
Zebediah Figura 2019-05-29 00:24:05 -05:00 committed by Michael Stefaniuc
parent 1b925afd24
commit 22b6b13efb
1 changed files with 9 additions and 2 deletions

View File

@ -1059,9 +1059,16 @@ static unsigned char get_parameter_fc( const var_t *var, int is_return, unsigned
case TGT_UNION:
case TGT_USER_TYPE:
case TGT_RANGE:
*flags |= MustFree;
if (!is_in && is_out) server_size = type_memsize( ref );
break;
case TGT_ARRAY:
*flags |= IsSimpleRef | MustFree;
*typestring_offset = ref->typestring_offset;
*flags |= MustFree;
if (!type_array_is_decl_as_ptr(ref))
{
*flags |= IsSimpleRef;
*typestring_offset = ref->typestring_offset;
}
if (!is_in && is_out) server_size = type_memsize( ref );
break;
case TGT_STRING: