Rob Shearman : widl: Fix typos in write_remoting_arg which caused ref pointers to unions to not result in direct calls to NonEncapsulatedUnion /EncapsulatedUnion functions.

Alexandre Julliard julliard at winehq.org
Thu Feb 19 09:18:28 CST 2009


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

Author: Rob Shearman <robertshearman at gmail.com>
Date:   Wed Feb 18 20:32:15 2009 +0000

widl: Fix typos in write_remoting_arg which caused ref pointers to unions to not result in direct calls to NonEncapsulatedUnion/EncapsulatedUnion functions.

---

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

diff --git a/tools/widl/typegen.c b/tools/widl/typegen.c
index f1a00e6..6e55d11 100644
--- a/tools/widl/typegen.c
+++ b/tools/widl/typegen.c
@@ -3320,14 +3320,14 @@ static void write_remoting_arg(FILE *file, int indent, const var_t *func, const
                 print_phase_function(file, indent, struct_type, local_var_prefix, phase, var, start_offset);
             }
         }
-        else if (type->type == RPC_FC_RP && is_union(type->type))
+        else if (type->type == RPC_FC_RP && is_union(ref->type))
         {
             const char *union_type = NULL;
             if (phase == PHASE_FREE)
                 union_type = "Pointer";
             else
             {
-                unsigned char tc = type->type;
+                unsigned char tc = ref->type;
 
                 if (tc == RPC_FC_NON_ENCAPSULATED_UNION)
                     union_type = "NonEncapsulatedUnion";




More information about the wine-cvs mailing list