widl: Use print_phase_function for printing NdrPointerFree call.

This commit is contained in:
Robert Shearman 2006-03-31 12:47:50 +01:00 committed by Alexandre Julliard
parent 04632f6ab7
commit eb000448a0
1 changed files with 2 additions and 11 deletions

View File

@ -1501,22 +1501,13 @@ void write_remoting_arguments(FILE *file, int indent, const func_t *func,
fprintf(file, ";\n"); fprintf(file, ";\n");
} }
/* FIXME: these can't both be correct */
if (phase == PHASE_FREE) if (phase == PHASE_FREE)
{ print_phase_function(file, indent, "Pointer", phase, var->name, *type_offset);
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--;
}
else else
{
print_phase_function(file, indent, "ConformantString", phase, var->name, *type_offset); print_phase_function(file, indent, "ConformantString", phase, var->name, *type_offset);
} }
} }
}
else if (is_array_type(var->attrs, var->ptr_level, var->array)) else if (is_array_type(var->attrs, var->ptr_level, var->array))
{ {
const char *array_type; const char *array_type;