diff --git a/dlls/msvcrt/except.c b/dlls/msvcrt/except.c index 43ae3b29f4e..890583858e0 100644 --- a/dlls/msvcrt/except.c +++ b/dlls/msvcrt/except.c @@ -372,6 +372,14 @@ void _MSVCRT_longjmp(_JUMP_BUFFER *jmp, int retval, CONTEXT86* context) } #endif /* i386 */ +/********************************************************************* + * _seh_longjmp_unwind (MSVCRT.@) + */ +void __stdcall _seh_longjmp_unwind(_JUMP_BUFFER *jmp) +{ + _local_unwind2( (MSVCRT_EXCEPTION_FRAME *)jmp->Registration, jmp->TryLevel ); +} + /********************************************************************* * signal (MSVCRT.@) */ diff --git a/dlls/msvcrt/msvcrt.spec b/dlls/msvcrt/msvcrt.spec index 76ee71916d7..5e822a1efb4 100644 --- a/dlls/msvcrt/msvcrt.spec +++ b/dlls/msvcrt/msvcrt.spec @@ -423,7 +423,7 @@ init MSVCRT_Init @ cdecl _safe_fprem1() _safe_fprem1 @ cdecl _scalb( double long) _scalb @ cdecl _searchenv(str str str) _searchenv -@ stub _seh_longjmp_unwind +@ stdcall _seh_longjmp_unwind(ptr) _seh_longjmp_unwind @ stub _set_error_mode #(long) @ stub _set_sbh_threshold #(long) @ stub _seterrormode #(long)