Alexandre Julliard : widl: Fix the prototype of generated exception filters .

Alexandre Julliard julliard at winehq.org
Thu Oct 22 10:39:55 CDT 2009


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

Author: Alexandre Julliard <julliard at winehq.org>
Date:   Thu Oct 22 13:04:09 2009 +0200

widl: Fix the prototype of generated exception filters.

---

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

diff --git a/tools/widl/typegen.c b/tools/widl/typegen.c
index 59f93ed..b41dcbe 100644
--- a/tools/widl/typegen.c
+++ b/tools/widl/typegen.c
@@ -4063,7 +4063,7 @@ void write_exceptions( FILE *file )
     fprintf( file, "#undef RpcAbnormalTermination\n");
     fprintf( file, "\n");
     fprintf( file, "struct __exception_frame;\n");
-    fprintf( file, "typedef int (*__filter_func)(EXCEPTION_RECORD *, struct __exception_frame *);\n");
+    fprintf( file, "typedef int (*__filter_func)(struct __exception_frame *);\n");
     fprintf( file, "typedef void (*__finally_func)(struct __exception_frame *);\n");
     fprintf( file, "\n");
     fprintf( file, "#define __DECL_EXCEPTION_FRAME \\\n");
@@ -4110,7 +4110,7 @@ void write_exceptions( FILE *file )
     fprintf( file, "        return ExceptionContinueSearch;\n");
     fprintf( file, "    }\n" );
     fprintf( file, "    exc_frame->code = record->ExceptionCode;\n");
-    fprintf( file, "    if (exc_frame->filter_level && exc_frame->filter( record, exc_frame ) == EXCEPTION_EXECUTE_HANDLER)\n" );
+    fprintf( file, "    if (exc_frame->filter_level && exc_frame->filter( exc_frame ) == EXCEPTION_EXECUTE_HANDLER)\n" );
     fprintf( file, "        __wine_rtl_unwind( frame, record, __widl_unwind_target );\n");
     fprintf( file, "    return ExceptionContinueSearch;\n");
     fprintf( file, "}\n");




More information about the wine-cvs mailing list