Re: [PATCH 1/3] [Msvcrt]: reset a signal to DFL after it's been used
2 Jan
2007
2 Jan
'07
6:35 p.m.
Eric Pouech <eric.pouech(a)wanadoo.fr> writes:
@@ -455,13 +456,13 @@ static LONG WINAPI msvcrt_exception_filt case EXCEPTION_FLT_OVERFLOW: case EXCEPTION_FLT_STACK_CHECK: case EXCEPTION_FLT_UNDERFLOW: - if (sighandlers[MSVCRT_SIGFPE]) + if ((handler =3D sighandlers[MSVCRT_SIGFPE]) !=3D MSVCRT_SIG_DFL= ) { - if (sighandlers[MSVCRT_SIGFPE] !=3D MSVCRT_SIG_IGN) + sighandlers[MSVCRT_SIGSEGV] =3D MSVCRT_SIG_DFL; + if (handler !=3D MSVCRT_SIG_IGN)
You have to check for SIG_IGN first, the handler should not be reset in that case. -- Alexandre Julliard julliard(a)winehq.org
6922
Age (days ago)
6922
Last active (days ago)
0 comments
1 participants
participants (1)
-
Alexandre Julliard