From 2b9c01eed280958166242fd0a18f42514ee79224 Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Fri, 26 Jan 2007 12:09:14 +0100 Subject: [PATCH] widl: Avoid dependency on COBJMACROS in generated code. --- tools/widl/proxy.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/tools/widl/proxy.c b/tools/widl/proxy.c index c5a05320e9a..f3a32fbb757 100644 --- a/tools/widl/proxy.c +++ b/tools/widl/proxy.c @@ -401,9 +401,12 @@ static void gen_stub(type_t *iface, const func_t *cur, const char *cas, fprintf(proxy, "\n"); print_proxy(""); if (has_ret) fprintf(proxy, "_RetVal = "); - fprintf(proxy, "%s_", iface->name); - if (cas) fprintf(proxy, "%s_Stub", cas); - else write_name(proxy, def); + if (cas) fprintf(proxy, "%s_%s_Stub", iface->name, cas); + else + { + fprintf(proxy, "_This->lpVtbl->"); + write_name(proxy, def); + } fprintf(proxy, "(_This"); if (cur->args)