Eric Kohl : widl: Implement support for unique pointers to arrays.
Alexandre Julliard
julliard at wine.codeweavers.com
Mon Apr 17 05:55:03 CDT 2006
Module: wine
Branch: refs/heads/master
Commit: e7134bd4cd72df412fe73575a29ef97ef29893b1
URL: http://source.winehq.org/git/?p=wine.git;a=commit;h=e7134bd4cd72df412fe73575a29ef97ef29893b1
Author: Eric Kohl <eric.kohl at t-online.de>
Date: Sat Apr 15 11:09:42 2006 +0200
widl: Implement support for unique pointers to arrays.
---
tools/widl/typegen.c | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
diff --git a/tools/widl/typegen.c b/tools/widl/typegen.c
index dbdfbc8..b2f160a 100644
--- a/tools/widl/typegen.c
+++ b/tools/widl/typegen.c
@@ -1769,7 +1769,12 @@ void write_remoting_arguments(FILE *file
print_file(file, indent, "_StubMsg.pfnFree(%s);\n", var->name);
}
else if (phase != PHASE_FREE)
- print_phase_function(file, indent, array_type, phase, var->name, *type_offset + 4);
+ {
+ if (pointer_type == RPC_FC_UP)
+ print_phase_function(file, indent, "Pointer", phase, var->name, *type_offset);
+ else
+ print_phase_function(file, indent, array_type, phase, var->name, *type_offset + 4);
+ }
}
else if (var->ptr_level == 0 && is_base_type(type->type))
{
More information about the wine-cvs
mailing list