From a514aa7653d96afd8c49f0d28c8e207b6707c800 Mon Sep 17 00:00:00 2001 From: Jacek Caban Date: Sun, 11 Nov 2018 20:42:55 +0100 Subject: [PATCH] widl: Don't make proxy vtbl const in interpreted mode. Signed-off-by: Jacek Caban Signed-off-by: Alexandre Julliard --- tools/widl/proxy.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/widl/proxy.c b/tools/widl/proxy.c index 4c7d85dc6ea..87c27be9759 100644 --- a/tools/widl/proxy.c +++ b/tools/widl/proxy.c @@ -664,7 +664,8 @@ static void write_proxy(type_t *iface, unsigned int *proc_offset) /* proxy vtable */ print_proxy( "static %sCINTERFACE_PROXY_VTABLE(%d) _%sProxyVtbl =\n", - need_delegation_indirect(iface) ? "" : "const ", count, iface->name); + (get_stub_mode() != MODE_Os || need_delegation_indirect(iface)) ? "" : "const ", + count, iface->name); print_proxy( "{\n"); indent++; print_proxy( "{\n");