Don't interpret SIG_DFL and SIG_IGN as real handler address.
Modified: trunk/reactos/lib/crt/signal/signal.c
_____
Modified: trunk/reactos/lib/crt/signal/signal.c
--- trunk/reactos/lib/crt/signal/signal.c 2005-08-29 22:23:55 UTC
(rev 17595)
+++ trunk/reactos/lib/crt/signal/signal.c 2005-08-30 16:24:55 UTC
(rev 17596)
@@ -61,7 +61,7 @@
}
// 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;