From 3e0e6887f897cbf357edd628b388a8effb8f3c8c Mon Sep 17 00:00:00 2001 From: Hartmut Birr Date: Tue, 30 Aug 2005 16:24:55 +0000 Subject: [PATCH] Don't interpret SIG_DFL and SIG_IGN as real handler address. svn path=/trunk/; revision=17596 --- reactos/lib/crt/signal/signal.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reactos/lib/crt/signal/signal.c b/reactos/lib/crt/signal/signal.c index 22078624d52..cc1dfa53ccd 100644 --- a/reactos/lib/crt/signal/signal.c +++ b/reactos/lib/crt/signal/signal.c @@ -61,7 +61,7 @@ __p_sig_fn_t signal(int sig, __p_sig_fn_t func) } // check with IsBadCodePtr - if ( func < (__p_sig_fn_t)4096 ) + if ( func < (__p_sig_fn_t)4096 && func != SIG_DFL && func != SIG_IGN) { __set_errno(EINVAL); return SIG_ERR;