From f7fbfc7da5ce14a6b2548cc23c9971fa434d4ae5 Mon Sep 17 00:00:00 2001 From: Rob Shearman Date: Mon, 17 Sep 2007 09:46:01 +0100 Subject: [PATCH] widl: Add support for strings embedded in structures. --- tools/widl/typegen.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tools/widl/typegen.c b/tools/widl/typegen.c index 02b2cbcf6a6..a15a969dee1 100644 --- a/tools/widl/typegen.c +++ b/tools/widl/typegen.c @@ -2041,6 +2041,10 @@ static int write_embedded_types(FILE *file, const attr_list_t *attrs, type_t *ty retmask |= 1; } } + else if (last_array(type) && is_attr(attrs, ATTR_STRING)) + { + write_string_tfs(file, attrs, type, name, tfsoff); + } else if (type->declarray && is_conformant_array(type)) ; /* conformant arrays and strings are handled specially */ else if (is_array(type))