Jacek Caban : widl: Don't make proxy vtbl const in interpreted mode.

Alexandre Julliard julliard at winehq.org
Mon Nov 12 16:26:55 CST 2018


Module: wine
Branch: master
Commit: a514aa7653d96afd8c49f0d28c8e207b6707c800
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=a514aa7653d96afd8c49f0d28c8e207b6707c800

Author: Jacek Caban <jacek at codeweavers.com>
Date:   Sun Nov 11 20:42:55 2018 +0100

widl: Don't make proxy vtbl const in interpreted mode.

Signed-off-by: Jacek Caban <jacek at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 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 4c7d85d..87c27be 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");




More information about the wine-cvs mailing list