Dmitry Timoshkov : widl: Correct the condition when to use new code path which avoids writing negative offsets in the pointer description.

Alexandre Julliard julliard at winehq.org
Thu Apr 3 13:31:15 CDT 2014


Module: wine
Branch: master
Commit: 1b6b04e3a8286d4baff3a90598b2158389b52bf4
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=1b6b04e3a8286d4baff3a90598b2158389b52bf4

Author: Dmitry Timoshkov <dmitry at baikal.ru>
Date:   Thu Apr  3 13:57:13 2014 +0900

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 d85b5e0..4bb4cc4 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);




More information about the wine-cvs mailing list