Alexandre Julliard : widl: Don' t make the proxy virtual tables const if they use delegation.
Module: wine Branch: master Commit: d88f9e3cd9739dd29cd5325cc3b4aae7ff2c2d5e URL: http://source.winehq.org/git/wine.git/?a=commit;h=d88f9e3cd9739dd29cd5325cc3... Author: Alexandre Julliard <julliard(a)winehq.org> Date: Tue Jun 9 12:10:20 2009 +0200 widl: Don't make the proxy virtual tables const if they use delegation. --- tools/widl/proxy.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/tools/widl/proxy.c b/tools/widl/proxy.c index b8ccdac..cc753bb 100644 --- a/tools/widl/proxy.c +++ b/tools/widl/proxy.c @@ -624,7 +624,8 @@ static void write_proxy(type_t *iface, unsigned int *proc_offset) count = count_methods(iface); /* proxy vtable */ - print_proxy( "static const CINTERFACE_PROXY_VTABLE(%d) _%sProxyVtbl =\n", count, iface->name); + print_proxy( "static %sCINTERFACE_PROXY_VTABLE(%d) _%sProxyVtbl =\n", + need_delegation_indirect(iface) ? "" : "const ", count, iface->name); print_proxy( "{\n"); indent++; print_proxy( "{\n");
participants (1)
-
Alexandre Julliard