Author: aandrejevic Date: Fri Nov 1 02:08:34 2013 New Revision: 60817
URL: http://svn.reactos.org/svn/reactos?rev=60817&view=rev Log: [FAST486] Fix a bug in the IRET instruction.
Modified: branches/ntvdm/lib/fast486/opcodes.c
Modified: branches/ntvdm/lib/fast486/opcodes.c URL: http://svn.reactos.org/svn/reactos/branches/ntvdm/lib/fast486/opcodes.c?rev=... ============================================================================== --- branches/ntvdm/lib/fast486/opcodes.c [iso-8859-1] (original) +++ branches/ntvdm/lib/fast486/opcodes.c [iso-8859-1] Fri Nov 1 02:08:34 2013 @@ -4613,7 +4613,7 @@
FAST486_OPCODE_HANDLER(Fast486OpcodeIret) { - USHORT i; + FAST486_SEG_REGS i; ULONG InstPtr, CodeSel, StackPtr, StackSel; FAST486_FLAGS_REG NewFlags; BOOLEAN Size = State->SegmentRegs[FAST486_REG_CS].Size; @@ -4777,7 +4777,7 @@ Cpl = Fast486GetCurrentPrivLevel(State);
/* Check segment security */ - for (i = 0; i <= FAST486_NUM_SEG_REGS; i++) + for (i = 0; i < FAST486_NUM_SEG_REGS; i++) { /* Don't check CS or SS */ if ((i == FAST486_REG_CS) || (i == FAST486_REG_SS)) continue;