From 1160180478c28a70c97d4efb059c6818384f563d Mon Sep 17 00:00:00 2001 From: Aleksandar Andrejevic Date: Wed, 29 Apr 2015 20:41:41 +0000 Subject: [PATCH] [FAST486] When a segment isn't present, the exception should always be #NP (unless it was the stack segment, in which case the exception should be #SS). svn path=/trunk/; revision=67479 --- reactos/lib/fast486/common.inl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/reactos/lib/fast486/common.inl b/reactos/lib/fast486/common.inl index b7a7f57239d..31e80ccdc38 100644 --- a/reactos/lib/fast486/common.inl +++ b/reactos/lib/fast486/common.inl @@ -625,7 +625,7 @@ Fast486LoadSegmentInternal(PFAST486_STATE State, if (!GdtEntry.Present) { - Fast486ExceptionWithErrorCode(State, Exception, Selector); + Fast486ExceptionWithErrorCode(State, FAST486_EXCEPTION_NP, Selector); return FALSE; } @@ -679,7 +679,7 @@ Fast486LoadSegmentInternal(PFAST486_STATE State, if (!GdtEntry.Present) { - Fast486ExceptionWithErrorCode(State, Exception, Selector); + Fast486ExceptionWithErrorCode(State, FAST486_EXCEPTION_NP, Selector); return FALSE; } }