From 7deb62505cc80c8412e319238351fc0d59810d50 Mon Sep 17 00:00:00 2001 From: Dan Hipschman Date: Wed, 12 Sep 2007 16:08:04 -0700 Subject: [PATCH] widl: Use the correct functions for interface pointers in stubs. --- tools/widl/typegen.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tools/widl/typegen.c b/tools/widl/typegen.c index 7d7c134fe4a..89d3d60b271 100644 --- a/tools/widl/typegen.c +++ b/tools/widl/typegen.c @@ -2610,7 +2610,10 @@ void write_remoting_arguments(FILE *file, int indent, const func_t *func, const var_t *iid; if ((iid = get_attrp( var->attrs, ATTR_IIDIS ))) print_file( file, indent, "_StubMsg.MaxCount = (unsigned long)%s;\n", iid->name ); - print_phase_function(file, indent, "Pointer", phase, var, start_offset); + if (var->type->ref->type == RPC_FC_IP) + print_phase_function(file, indent, "InterfacePointer", phase, var, start_offset); + else + print_phase_function(file, indent, "Pointer", phase, var, start_offset); } } fprintf(file, "\n"); -- 2.11.4.GIT