Module: wine Branch: master Commit: 7e4a985269ee09614fa8e98d06bffdf46b9c46cd URL: http://source.winehq.org/git/wine.git/?a=commit;h=7e4a985269ee09614fa8e98d06...
Author: Alexandre Julliard julliard@winehq.org Date: Fri Jan 26 12:03:02 2007 +0100
widl: Initialize local variables in stub functions.
---
tools/widl/proxy.c | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/tools/widl/proxy.c b/tools/widl/proxy.c index 26e184e..afe998a 100644 --- a/tools/widl/proxy.c +++ b/tools/widl/proxy.c @@ -361,6 +361,10 @@ static void gen_stub(type_t *iface, cons print_proxy("NdrStubInitialize(_Msg, &_StubMsg, &Object_StubDesc, pRpcChannelBuffer);\n"); fprintf(proxy, "\n");
+ if (cur->args) + LIST_FOR_EACH_ENTRY( arg, cur->args, const var_t, entry ) + print_proxy("%s = 0;\n", arg->name); + print_proxy("RpcTryFinally\n"); print_proxy("{\n"); indent++;