widl: filter_func isn't used when USE_COMPILER_EXCEPTIONS is defined
unknown (none)
Christoph at .
Fri Feb 6 02:55:54 CST 2009
---
tools/widl/proxy.c | 2 ++
tools/widl/server.c | 2 ++
2 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/tools/widl/proxy.c b/tools/widl/proxy.c
index 0dcb737..88c0e53 100644
--- a/tools/widl/proxy.c
+++ b/tools/widl/proxy.c
@@ -122,10 +122,12 @@ static void init_proxy(const statement_list_t *stmts)
print_proxy( " void *This;\n");
print_proxy( "};\n");
print_proxy( "\n");
+ print_proxy("#ifndef USE_COMPILER_EXCEPTIONS\n");
print_proxy("static int __proxy_filter( struct __proxy_frame *__frame )\n");
print_proxy( "{\n");
print_proxy( " return (__frame->_StubMsg.dwStubPhase != PROXY_SENDRECEIVE);\n");
print_proxy( "}\n");
+ print_proxy("#endif /* USE_COMPILER_EXCEPTIONS */\n");
print_proxy( "\n");
}
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");
}
--
1.6.1.9.g97c34
--------------090403040205010608050209--
More information about the wine-patches
mailing list