From eb000448a0f816e5d2acf6643355753e9d7b86ad Mon Sep 17 00:00:00 2001 From: Robert Shearman Date: Fri, 31 Mar 2006 12:47:50 +0100 Subject: [PATCH] widl: Use print_phase_function for printing NdrPointerFree call. --- tools/widl/typegen.c | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/tools/widl/typegen.c b/tools/widl/typegen.c index a2845579649..786217f8bda 100644 --- a/tools/widl/typegen.c +++ b/tools/widl/typegen.c @@ -1501,20 +1501,11 @@ void write_remoting_arguments(FILE *file, int indent, const func_t *func, fprintf(file, ";\n"); } + /* FIXME: these can't both be correct */ if (phase == PHASE_FREE) - { - print_file(file, indent, "NdrPointerFree(\n"); - indent++; - print_file(file, indent, "&_StubMsg,\n"); - print_file(file, indent, "(unsigned char *)%s,\n", var->name); - print_file(file, indent, "&__MIDL_TypeFormatString.Format[%d]);\n", - *type_offset); - indent--; - } + print_phase_function(file, indent, "Pointer", phase, var->name, *type_offset); else - { print_phase_function(file, indent, "ConformantString", phase, var->name, *type_offset); - } } } else if (is_array_type(var->attrs, var->ptr_level, var->array))