Module: wine Branch: master Commit: 64b2e44697b2eb70c671f43602fdd2f184841601 URL: https://gitlab.winehq.org/wine/wine/-/commit/64b2e44697b2eb70c671f43602fdd2f...
Author: Alexandre Julliard julliard@winehq.org Date: Wed Feb 28 16:25:50 2024 +0100
widl: Use the official definitions for exception flags.
---
tools/widl/typegen.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/tools/widl/typegen.c b/tools/widl/typegen.c index 195ef49f102..7abc9905069 100644 --- a/tools/widl/typegen.c +++ b/tools/widl/typegen.c @@ -5147,9 +5147,9 @@ void write_exceptions( FILE *file ) fprintf( file, "{\n"); fprintf( file, " struct __exception_frame *exc_frame = (struct __exception_frame *)frame;\n"); fprintf( file, "\n"); - fprintf( file, " if (record->ExceptionFlags & (EH_UNWINDING | EH_EXIT_UNWIND | EH_NESTED_CALL))\n"); + fprintf( file, " if (record->ExceptionFlags & (EXCEPTION_UNWINDING | EXCEPTION_EXIT_UNWIND | EXCEPTION_NESTED_CALL))\n"); fprintf( file, " {\n" ); - fprintf( file, " if (exc_frame->finally_level && (record->ExceptionFlags & (EH_UNWINDING | EH_EXIT_UNWIND)))\n"); + fprintf( file, " if (exc_frame->finally_level && (record->ExceptionFlags & (EXCEPTION_UNWINDING | EXCEPTION_EXIT_UNWIND)))\n"); fprintf( file, " {\n" ); fprintf( file, " exc_frame->abnormal_termination = 1;\n"); fprintf( file, " exc_frame->finally( exc_frame );\n");