Commit 584d2c91 authored by Alexandre Julliard's avatar Alexandre Julliard

widl: Do not make the stub vtbl const for delegating interfaces since it needs…

widl: Do not make the stub vtbl const for delegating interfaces since it needs to be patched up at run-time.
parent 797ee403
......@@ -607,7 +607,8 @@ static void write_proxy(type_t *iface, unsigned int *proc_offset)
indent--;
fprintf(proxy, "};\n");
print_proxy( "\n");
print_proxy( "static const CInterfaceStubVtbl _%sStubVtbl =\n", iface->name);
print_proxy( "static %sCInterfaceStubVtbl _%sStubVtbl =\n",
need_delegation(iface) ? "" : "const ", iface->name);
print_proxy( "{\n");
indent++;
print_proxy( "{\n");
......@@ -784,7 +785,7 @@ void write_proxies(const statement_list_t *stmts)
fprintf(proxy, "static const CInterfaceStubVtbl* const _%s_StubVtblList[] =\n", file_id);
fprintf(proxy, "{\n");
write_proxy_iface_name_format(stmts, " (const CInterfaceStubVtbl*)&_%sStubVtbl,\n");
write_proxy_iface_name_format(stmts, " &_%sStubVtbl,\n");
fprintf(proxy, " 0\n");
fprintf(proxy, "};\n");
fprintf(proxy, "\n");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment