widl: filter_func isn't used when USE_COMPILER_EXCEPTIONS is defined (2/2)

Christoph von Wittich Christoph at ApiViewer.de
Thu Feb 5 05:43:15 CST 2009


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

diff --git a/tools/widl/server.c b/tools/widl/server.c
index 3b0e2f4..c631b2d 100644
--- a/tools/widl/server.c
+++ b/tools/widl/server.c
@@ -390,10 +390,12 @@ static void init_server(void)
     print_server("    MIDL_STUB_MESSAGE _StubMsg;\n");
     print_server("};\n");
     print_server("\n");
+    print_server("#ifndef USE_COMPILER_EXCEPTIONS\n");
     print_server("static int __server_filter( struct __server_frame 
*__frame )\n");
     print_server( "{\n");
     print_server( "    return RPC_BAD_STUB_DATA_EXCEPTION_FILTER;\n");
     print_server( "}\n");
+    print_server("#endif /* USE_COMPILER_EXCEPTIONS */\n");
     print_server( "\n");
 }
 




More information about the wine-patches mailing list