Robert Shearman : widl:
Initialise the temporary variable to 0 for parameters with more than
one level of indirection .
Alexandre Julliard
julliard at wine.codeweavers.com
Fri Mar 31 13:05:02 CST 2006
Module: wine
Branch: refs/heads/master
Commit: 62eb9f4b0c88d02c05e3971b3be25833996de0a2
URL: http://source.winehq.org/git/?p=wine.git;a=commit;h=62eb9f4b0c88d02c05e3971b3be25833996de0a2
Author: Robert Shearman <rob at codeweavers.com>
Date: Fri Mar 31 12:50:10 2006 +0100
widl: Initialise the temporary variable to 0 for parameters with more than one level of indirection.
---
tools/widl/server.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/tools/widl/server.c b/tools/widl/server.c
index b3c8c65..9ffb6b5 100644
--- a/tools/widl/server.c
+++ b/tools/widl/server.c
@@ -167,7 +167,10 @@ static void assign_out_args(const func_t
}
else
{
- fprintf(server, " = &_W%u;\n", i++);
+ fprintf(server, " = &_W%u;\n", i);
+ if (var->ptr_level > 1)
+ print_server("_W%u = 0;\n", i);
+ i++;
}
sep = 1;
More information about the wine-cvs
mailing list