https://git.reactos.org/?p=reactos.git;a=commitdiff;h=c41dde9a2bc22075488f5e...
commit c41dde9a2bc22075488f5e07c1715fd158b015bd Author: Amine Khaldi amine.khaldi@reactos.org AuthorDate: Sat Nov 23 12:11:45 2019 +0100 Commit: Amine Khaldi amine.khaldi@reactos.org CommitDate: Sat Nov 23 12:11:45 2019 +0100
[INCLUDE/WINE] Add __FINALLY_CTX in the context of our PSEH library. CORE-16441 --- sdk/include/reactos/wine/exception.h | 1 + 1 file changed, 1 insertion(+)
diff --git a/sdk/include/reactos/wine/exception.h b/sdk/include/reactos/wine/exception.h index 5a5e7f7e9dd..b16d502f826 100644 --- a/sdk/include/reactos/wine/exception.h +++ b/sdk/include/reactos/wine/exception.h @@ -60,6 +60,7 @@ typedef struct _WINE_EXCEPTION_REGISTRATION_RECORD #define __EXCEPT_ALL _SEH2_EXCEPT(_SEH_EXECUTE_HANDLER) #define __ENDTRY _SEH2_END #define __FINALLY(func) _SEH2_FINALLY { func(!_SEH2_AbnormalTermination()); } +#define __FINALLY_CTX(func, ctx) _SEH2_FINALLY { func(!_SEH2_AbnormalTermination(), ctx); }; _SEH2_END
#ifndef GetExceptionCode #define GetExceptionCode() _SEH2_GetExceptionCode()