From 39b15066b052cc098eb8ec52056ee2b49d12b1a2 Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Fri, 3 Jun 2011 16:28:25 +0200 Subject: [PATCH] widl: Add support for generating new-style interpreted stubs for servers. --- tools/widl/server.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/widl/server.c b/tools/widl/server.c index 46bb771d333..1c1bc496162 100644 --- a/tools/widl/server.c +++ b/tools/widl/server.c @@ -270,7 +270,7 @@ static void write_dispatchtable(type_t *iface) { var_t *func = stmt->u.var; if (is_interpreted_func( iface, func )) - print_server("NdrServerCall,\n"); + print_server("%s,\n", stub_mode == MODE_Oif ? "NdrServerCall2" : "NdrServerCall"); else print_server("%s_%s,\n", iface->name, get_name(func)); method_count++; @@ -354,7 +354,7 @@ static void write_stubdescriptor(type_t *iface, int expr_eval_routines) print_server("0,\n"); print_server("__MIDL_TypeFormatString.Format,\n"); print_server("1, /* -error bounds_check flag */\n"); - print_server("0x10001, /* Ndr library version */\n"); + print_server("0x%x, /* Ndr library version */\n", stub_mode == MODE_Oif ? 0x50002 : 0x10001); print_server("0,\n"); print_server("0x50100a4, /* MIDL Version 5.1.164 */\n"); print_server("0,\n");