Commit 4ae4acca authored by Gerald Pfeifer's avatar Gerald Pfeifer Committed by Alexandre Julliard

ntdll: Fix leave_handler for FreeBSD and NetBSD.

With recent changes leave_handler writes to some of its parameter's fields (via DS_sig and ES_sig) on FreeBSD and NetBSD - which fails since it is declared const. Accordingly strip const-ness.
parent e1f0318e
...@@ -812,7 +812,7 @@ static inline ucontext_t *init_handler( void *sigcontext ) ...@@ -812,7 +812,7 @@ static inline ucontext_t *init_handler( void *sigcontext )
/*********************************************************************** /***********************************************************************
* leave_handler * leave_handler
*/ */
static inline void leave_handler( const ucontext_t *sigcontext ) static inline void leave_handler( ucontext_t *sigcontext )
{ {
#ifdef __linux__ #ifdef __linux__
if (fs32_sel && !is_inside_signal_stack( (void *)RSP_sig(sigcontext )) && !is_inside_syscall(sigcontext)) if (fs32_sel && !is_inside_signal_stack( (void *)RSP_sig(sigcontext )) && !is_inside_syscall(sigcontext))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment