widl: Avoid dependency on COBJMACROS in generated code.

This commit is contained in:
Alexandre Julliard 2007-01-26 12:09:14 +01:00
parent 9505b50ccf
commit 2b9c01eed2
1 changed files with 6 additions and 3 deletions

View File

@ -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)