From 8800266b20efa2c4b62ebd5bfabb8244b31fb880 Mon Sep 17 00:00:00 2001 From: Timo Kreuzer Date: Fri, 13 May 2011 19:13:53 +0000 Subject: [PATCH] [WIDL] Update widl_ros.diff The change was done in r49282 in cmake branch and mysteriously made it into trunk in r50063, which is a wine sync, but wine doesn't have that code. svn path=/trunk/; revision=51704 --- reactos/tools/widl/widl_ros.diff | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/reactos/tools/widl/widl_ros.diff b/reactos/tools/widl/widl_ros.diff index 7e6b59c0ff3..919fc39e57c 100644 --- a/reactos/tools/widl/widl_ros.diff +++ b/reactos/tools/widl/widl_ros.diff @@ -12,6 +12,25 @@ diff -u wine-1.3.4/tools/widl/hash.c tools/widl/hash.c #include "widltypes.h" #include "hash.h" +diff -u wine-1.3.4/tools/widl/header.c tools/widl/header.c +--- wine-1.3.4/tools/widl/header.c 2010-09-19 17:48:47.640625000 +0200 ++++ tools/widl/header.c 2010-10-26 18:30:19.000000000 +0200 +@@ -1081,15 +1081,7 @@ + { + unsigned int ver = get_attrv(iface->attrs, ATTR_VERSION); + const char *var = get_attrp(iface->attrs, ATTR_IMPLICIT_HANDLE); +- static int allocate_written = 0; + +- if (!allocate_written) +- { +- allocate_written = 1; +- fprintf(header, "void * __RPC_USER MIDL_user_allocate(SIZE_T);\n"); +- fprintf(header, "void __RPC_USER MIDL_user_free(void *);\n\n"); +- } +- + fprintf(header, "/*****************************************************************************\n"); + fprintf(header, " * %s interface (v%d.%d)\n", iface->name, MAJORVERSION(ver), MINORVERSION(ver)); + fprintf(header, " */\n"); diff -u wine-1.3.4/tools/widl/parser.y tools/widl/parser.y --- wine-1.3.4/tools/widl/parser.y 2010-09-19 17:49:40.578125000 +0200 +++ tools/widl/parser.y 2010-10-03 16:44:18.781250000 +0200