From b1789fc73f6a4816c234e2bfb22a8a7271d80fab Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Tue, 12 Feb 2008 22:39:54 +0100 Subject: [PATCH] kernel32: Don't save the signal mask in sigsetjmp. This shouldn't be needed anymore now that exceptions are not handled on the signal stack, and signal mask handling is broken on Mac OS. --- dlls/kernel32/fiber.c | 2 +- include/wine/exception.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dlls/kernel32/fiber.c b/dlls/kernel32/fiber.c index f8647ef8c40..24ea351a881 100644 --- a/dlls/kernel32/fiber.c +++ b/dlls/kernel32/fiber.c @@ -188,7 +188,7 @@ void WINAPI SwitchToFiber( LPVOID fiber ) /* stack_allocation and stack_base never change */ /* FIXME: should save floating point context if requested in fiber->flags */ - if (!sigsetjmp( current_fiber->jmpbuf, 1 )) + if (!sigsetjmp( current_fiber->jmpbuf, 0 )) { NtCurrentTeb()->Tib.u.FiberData = new_fiber; NtCurrentTeb()->Tib.ExceptionList = new_fiber->except; diff --git a/include/wine/exception.h b/include/wine/exception.h index ceb4c12a67c..adf892694c7 100644 --- a/include/wine/exception.h +++ b/include/wine/exception.h @@ -94,7 +94,7 @@ __f.frame.Handler = __wine_exception_handler; \ __f.u.filter = (func); \ __wine_push_frame( &__f.frame ); \ - if (sigsetjmp( __f.jmp, 1 )) { \ + if (sigsetjmp( __f.jmp, 0 )) { \ const __WINE_FRAME * const __eptr __attribute__((unused)) = &__f; \ do {