From a3513c8f18a9d8aad3f5c9c66fe1fa6bc4887c14 Mon Sep 17 00:00:00 2001 From: Aleksandar Andrejevic Date: Wed, 13 Nov 2013 22:34:38 +0000 Subject: [PATCH] [FAST486] Fix previous fix. svn path=/branches/ntvdm/; revision=60985 --- lib/fast486/opgroups.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/fast486/opgroups.c b/lib/fast486/opgroups.c index 0a297aed414..754a9d8fc90 100644 --- a/lib/fast486/opgroups.c +++ b/lib/fast486/opgroups.c @@ -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; }