Alexandre Julliard : widl: We need an offset after the correlation descriptor for unencapsulated unions .

Alexandre Julliard julliard at winehq.org
Fri Jan 23 10:07:01 CST 2009


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

Author: Alexandre Julliard <julliard at winehq.org>
Date:   Fri Jan 23 16:47:51 2009 +0100

widl: We need an offset after the correlation descriptor for unencapsulated unions.

---

 tools/widl/typegen.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/tools/widl/typegen.c b/tools/widl/typegen.c
index 4e0bea0..599e2fe 100644
--- a/tools/widl/typegen.c
+++ b/tools/widl/typegen.c
@@ -2325,6 +2325,8 @@ static size_t write_union_tfs(FILE *file, type_t *type, unsigned int *tfsoff)
         }
 
         *tfsoff += write_conf_or_var_desc(file, NULL, *tfsoff, st, &dummy_expr );
+        print_file(file, 2, "NdrFcShort(0x2),\t/* Offset= 2 (%u) */\n", *tfsoff + 2);
+        *tfsoff += 2;
     }
 
     print_file(file, 2, "NdrFcShort(0x%x),\t/* %d */\n", size, size);




More information about the wine-cvs mailing list