[FAST486]
authorAleksandar Andrejevic <aandrejevic@reactos.org>
Sat, 14 Dec 2013 02:30:42 +0000 (02:30 +0000)
committerAleksandar Andrejevic <aandrejevic@reactos.org>
Sat, 14 Dec 2013 02:30:42 +0000 (02:30 +0000)
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

index be4d701..7480296 100644 (file)
@@ -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)