From efcf73c4670edecf1254edc5fc4c50e4bfc83f90 Mon Sep 17 00:00:00 2001 From: Aleksandar Andrejevic Date: Sat, 14 Dec 2013 02:30:42 +0000 Subject: [PATCH] [FAST486] The LDT can be loaded with a NULL descriptor. That invalidates the LDT but doesn't cause any exception. svn path=/branches/ntvdm/; revision=61269 --- lib/fast486/opgroups.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/fast486/opgroups.c b/lib/fast486/opgroups.c index be4d701499e..7480296a46e 100644 --- a/lib/fast486/opgroups.c +++ b/lib/fast486/opgroups.c @@ -1798,8 +1798,8 @@ FAST486_OPCODE_HANDLER(Fast486OpcodeGroup0F00) if (GET_SEGMENT_INDEX(Selector) == 0) { - Fast486Exception(State, FAST486_EXCEPTION_GP); - return FALSE; + RtlZeroMemory(&State->Ldtr, sizeof(State->Ldtr)); + return TRUE; } if (!GdtEntry.Present)