Francois Gouget : widl: Use CONST_VTBL to declare lpVtbl.

Alexandre Julliard julliard at wine.codeweavers.com
Mon Oct 2 05:40:31 CDT 2006


Module: wine
Branch: master
Commit: 4b2d7e9321b042d3db96080c0b7f911d6a267f17
URL:    http://source.winehq.org/git/?p=wine.git;a=commit;h=4b2d7e9321b042d3db96080c0b7f911d6a267f17

Author: Francois Gouget <fgouget at free.fr>
Date:   Fri Sep 29 12:45:18 2006 +0200

widl: Use CONST_VTBL to declare lpVtbl.

---

 tools/widl/header.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/tools/widl/header.c b/tools/widl/header.c
index 5415785..6d34ac2 100644
--- a/tools/widl/header.c
+++ b/tools/widl/header.c
@@ -847,7 +847,7 @@ static void write_com_interface(type_t *
   fprintf(header, "    END_INTERFACE\n");
   fprintf(header, "} %sVtbl;\n", iface->name);
   fprintf(header, "interface %s {\n", iface->name);
-  fprintf(header, "    const %sVtbl* lpVtbl;\n", iface->name);
+  fprintf(header, "    CONST_VTBL %sVtbl* lpVtbl;\n", iface->name);
   fprintf(header, "};\n");
   fprintf(header, "\n");
   fprintf(header, "#ifdef COBJMACROS\n");
@@ -932,7 +932,7 @@ void write_dispinterface(type_t *iface)
   fprintf(header, "    END_INTERFACE\n");
   fprintf(header, "} %sVtbl;\n", iface->name);
   fprintf(header, "interface %s {\n", iface->name);
-  fprintf(header, "    const %sVtbl* lpVtbl;\n", iface->name);
+  fprintf(header, "    CONST_VTBL %sVtbl* lpVtbl;\n", iface->name);
   fprintf(header, "};\n");
   fprintf(header, "\n");
   fprintf(header, "#ifdef COBJMACROS\n");




More information about the wine-cvs mailing list