From 897fd119f68704c02d950be4d5b5fb3daf89fbe6 Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Sat, 15 May 1999 10:52:56 +0000 Subject: [PATCH] Tried to add an error message when crashing on a selector load because of missing LDT sharing between threads (untested). --- miscemu/instr.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/miscemu/instr.c b/miscemu/instr.c index 4ff44dc779..be4728584a 100644 --- a/miscemu/instr.c +++ b/miscemu/instr.c @@ -79,6 +79,8 @@ static BOOL INSTR_ReplaceSelector( SIGCONTEXT *context, WORD *sel ) *sel = DOSMEM_BiosDataSeg; return TRUE; } + if (!IS_SELECTOR_SYSTEM(*sel) && !IS_SELECTOR_FREE(*sel)) + ERR_(int)("Got protection fault on valid selector, maybe your kernel is too old?\n" ); return FALSE; /* Can't replace selector, crashdump */ } -- 2.32.0.93.g670b81a890