[FAST486]
[reactos.git] / 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;
     }