From 1b6b04e3a8286d4baff3a90598b2158389b52bf4 Mon Sep 17 00:00:00 2001 From: Dmitry Timoshkov Date: Thu, 3 Apr 2014 13:57:13 +0900 Subject: [PATCH] widl: Correct the condition when to use new code path which avoids writing negative offsets in the pointer description. --- tools/widl/typegen.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/widl/typegen.c b/tools/widl/typegen.c index d85b5e078d0..4bb4cc4719f 100644 --- a/tools/widl/typegen.c +++ b/tools/widl/typegen.c @@ -3596,7 +3596,7 @@ static unsigned int write_type_tfs(FILE *file, int indent, else ref_context = context; - if (is_string_type(attrs, type) && is_conformant_array(ref)) + if (is_string_type(attrs, ref)) { if (context != TYPE_CONTEXT_CONTAINER_NO_POINTERS) write_pointer_tfs(file, attrs, type, *typeformat_offset + 4, context, typeformat_offset); -- 2.11.4.GIT