From 944f22db8052032ec6b3a72a6253d483834b9ebc Mon Sep 17 00:00:00 2001 From: Rob Shearman Date: Wed, 18 Feb 2009 20:32:15 +0000 Subject: [PATCH] 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 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/widl/typegen.c b/tools/widl/typegen.c index f1a00e68576..6e55d117546 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"; -- 2.11.4.GIT