Robert Shearman : widl:
Use print_phase_function for printing NdrPointerFree call.
Alexandre Julliard
julliard at wine.codeweavers.com
Fri Mar 31 13:04:58 CST 2006
Module: wine
Branch: refs/heads/master
Commit: eb000448a0f816e5d2acf6643355753e9d7b86ad
URL: http://source.winehq.org/git/?p=wine.git;a=commit;h=eb000448a0f816e5d2acf6643355753e9d7b86ad
Author: Robert Shearman <rob at codeweavers.com>
Date: Fri Mar 31 12:47:50 2006 +0100
widl: Use print_phase_function for printing NdrPointerFree call.
---
tools/widl/typegen.c | 13 ++-----------
1 files changed, 2 insertions(+), 11 deletions(-)
diff --git a/tools/widl/typegen.c b/tools/widl/typegen.c
index a284557..786217f 100644
--- a/tools/widl/typegen.c
+++ b/tools/widl/typegen.c
@@ -1501,20 +1501,11 @@ void write_remoting_arguments(FILE *file
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))
More information about the wine-cvs
mailing list