[FAST486]
authorAleksandar Andrejevic <aandrejevic@reactos.org>
Fri, 1 Nov 2013 00:30:26 +0000 (00:30 +0000)
committerAleksandar Andrejevic <aandrejevic@reactos.org>
Fri, 1 Nov 2013 00:30:26 +0000 (00:30 +0000)
In real mode, the value in the IVT is a far pointer, not an IDT entry.
Fix the case when MemReadCallback is NULL.

svn path=/branches/ntvdm/; revision=60813

lib/fast486/common.inl

index 9eeb4dd..394542b 100644 (file)
@@ -430,7 +430,7 @@ Fast486GetIntVector(PFAST486_STATE State,
         }
         else
         {
         }
         else
         {
-            RtlMoveMemory(IdtEntry,
+            RtlMoveMemory(&FarPointer,
                           (PVOID)(State->Idtr.Address
                           + Number * sizeof(FarPointer)),
                           sizeof(FarPointer));
                           (PVOID)(State->Idtr.Address
                           + Number * sizeof(FarPointer)),
                           sizeof(FarPointer));