Commit 944f22db authored by Rob Shearman's avatar Rob Shearman Committed by Alexandre Julliard

widl: Fix typos in write_remoting_arg which caused ref pointers to unions to not…

widl: Fix typos in write_remoting_arg which caused ref pointers to unions to not result in direct calls to NonEncapsulatedUnion/EncapsulatedUnion functions.
parent 32bacc9c
......@@ -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";
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment