[FAST486]
authorAleksandar Andrejevic <aandrejevic@reactos.org>
Wed, 13 Nov 2013 22:34:38 +0000 (22:34 +0000)
committerAleksandar Andrejevic <aandrejevic@reactos.org>
Wed, 13 Nov 2013 22:34:38 +0000 (22:34 +0000)
Fix previous fix.

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

lib/fast486/opgroups.c

index 0a297ae..754a9d8 100644 (file)
@@ -496,8 +496,8 @@ FAST486_OPCODE_HANDLER(Fast486OpcodeGroup8F)
     if (!Fast486ParseModRegRm(State, AddressSize, &ModRegRm))
     {
         /* Exception occurred - restore SP */
-        if (OperandSize) State->GeneralRegs[FAST486_REG_ESP].Long += sizeof(ULONG);
-        else State->GeneralRegs[FAST486_REG_ESP].LowWord += sizeof(USHORT);
+        if (OperandSize) State->GeneralRegs[FAST486_REG_ESP].Long -= sizeof(ULONG);
+        else State->GeneralRegs[FAST486_REG_ESP].LowWord -= sizeof(USHORT);
 
         return FALSE;
     }