widl: Don't call write_embedded_types if an array element is a string.

This commit is contained in:
Dmitry Timoshkov 2014-04-02 18:37:41 +09:00 committed by Alexandre Julliard
parent bde38bebe9
commit 1dbcdee326
1 changed files with 2 additions and 1 deletions

View File

@ -2899,7 +2899,8 @@ static unsigned int write_array_tfs(FILE *file, const attr_list_t *attrs, type_t
if (!pointer_type)
pointer_type = RPC_FC_RP;
write_embedded_types(file, attrs, type_array_get_element(type), name, FALSE, typestring_offset);
if (!is_string_type(attrs, type_array_get_element(type)))
write_embedded_types(file, attrs, type_array_get_element(type), name, FALSE, typestring_offset);
size = type_memsize(is_conformant_array(type) ? type_array_get_element(type) : type);
align = type_buffer_alignment(is_conformant_array(type) ? type_array_get_element(type) : type);