From: Piotr Caban piotr@codeweavers.com
vccorlib140 decrements exception reference based on EXCEPTION_RECORD passed to the handler. --- dlls/msvcrt/except_i386.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/msvcrt/except_i386.c b/dlls/msvcrt/except_i386.c index 7d1faa95272..26cd2926fca 100644 --- a/dlls/msvcrt/except_i386.c +++ b/dlls/msvcrt/except_i386.c @@ -710,7 +710,7 @@ int CDECL _except_handler4_common( ULONG *cookie, void (*check_cookie)(void), __DestructExceptionObject(rec);
/* Unwind all higher frames, this one will handle the exception */ - _global_unwind2((EXCEPTION_REGISTRATION_RECORD*)frame); + RtlUnwind(frame, 0, rec, 0); msvcrt_local_unwind4( cookie, frame, trylevel, &frame->_ebp );
/* Set our trylevel to the enclosing block, and call the __finally