diff options
Diffstat (limited to 'src/pal/src/exception/seh.cpp')
-rw-r--r-- | src/pal/src/exception/seh.cpp | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/pal/src/exception/seh.cpp b/src/pal/src/exception/seh.cpp index ad09e02884..2d1c18218a 100644 --- a/src/pal/src/exception/seh.cpp +++ b/src/pal/src/exception/seh.cpp @@ -27,7 +27,7 @@ Abstract: #include "pal/init.h" #include "pal/process.h" #include "pal/malloc.hpp" -#include "signal.hpp" +#include "pal/signal.hpp" #if HAVE_MACH_EXCEPTIONS #include "machexception.h" @@ -111,14 +111,12 @@ Return value : BOOL SEHInitialize (CPalThread *pthrCurrent, DWORD flags) { -#if !HAVE_MACH_EXCEPTIONS if (!SEHInitializeSignals(flags)) { ERROR("SEHInitializeSignals failed!\n"); SEHCleanup(); return FALSE; } -#endif return TRUE; } @@ -142,9 +140,8 @@ SEHCleanup() #if HAVE_MACH_EXCEPTIONS SEHCleanupExceptionPort(); -#else - SEHCleanupSignals(); #endif + SEHCleanupSignals(); } /*++ @@ -226,7 +223,11 @@ Parameters: PAL_SEHException* ex - the exception to throw. --*/ extern "C" +#ifdef _X86_ +void __fastcall ThrowExceptionHelper(PAL_SEHException* ex) +#else // _X86_ void ThrowExceptionHelper(PAL_SEHException* ex) +#endif // !_X86_ { throw std::move(*ex); } |