Commit 7004766e authored by Juergen Lock's avatar Juergen Lock Committed by Alexandre Julliard

Fix %fs for signal handlers in the FS_sig undefined case (this patch

actually from Ulrich Weigand, I only tested it).
parent e977d6ca
......@@ -244,7 +244,12 @@ typedef struct _CONTEXT /* Note 1 */
if (!fs) fs = SYSLEVEL_EmergencyTeb; \
SET_FS(fs); } while (0)
#else
#define HANDLER_INIT() /* nothing */
#define HANDLER_INIT() \
do { int fs; GET_FS(fs); fs &= 0xffff; \
if (!IS_SELECTOR_SYSTEM(CS_sig(HANDLER_CONTEXT))) \
fs = SYSLEVEL_Win16CurrentTeb; \
if (!fs) fs = SYSLEVEL_EmergencyTeb; \
SET_FS(fs); } while (0)
#endif
#else /* __i386__ */
......
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