From 1dbcdee3268ccddca5a70a350b2f7ce9dcf70ffb Mon Sep 17 00:00:00 2001 From: Dmitry Timoshkov Date: Wed, 2 Apr 2014 18:37:41 +0900 Subject: [PATCH] widl: Don't call write_embedded_types if an array element is a string. --- tools/widl/typegen.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/widl/typegen.c b/tools/widl/typegen.c index 37222d137ba..9d9aeb7bb55 100644 --- a/tools/widl/typegen.c +++ b/tools/widl/typegen.c @@ -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);