Commit 063cff86 authored by Alexandre Julliard's avatar Alexandre Julliard

Use the signal stack pointer to determine the current thread.

Converted the SIGUSR2 handler to use setup_exception (probably still not working properly).
parent 47f62a40
......@@ -48,7 +48,6 @@ static SYSLEVEL Win16Mutex = { { &critsect_debug, -1, 0, 0, 0, 0 }, 1 };
#ifdef __i386__
extern unsigned int CallTo16_TebSelector;
extern void __wine_set_signal_fs( unsigned int fs );
#endif
......@@ -116,11 +115,7 @@ VOID WINAPI _EnterSysLevel(SYSLEVEL *lock)
lock, lock->level, GetCurrentThreadId(), teb->sys_count[lock->level] );
#ifdef __i386__
if (lock == &Win16Mutex)
{
__wine_set_signal_fs( wine_get_fs() );
CallTo16_TebSelector = wine_get_fs();
}
if (lock == &Win16Mutex) CallTo16_TebSelector = wine_get_fs();
#endif
}
......
......@@ -1074,7 +1074,6 @@
# signal handling
@ cdecl __wine_set_signal_handler(long ptr)
@ cdecl -norelay -i386 __wine_set_signal_fs(long)
################################################################
# Wine dll separation hacks, these will go away, don't use them
......
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