[FAST486]
authorAleksandar Andrejevic <aandrejevic@reactos.org>
Sat, 30 Nov 2013 23:14:54 +0000 (23:14 +0000)
committerAleksandar Andrejevic <aandrejevic@reactos.org>
Sat, 30 Nov 2013 23:14:54 +0000 (23:14 +0000)
Use the size of CS, and not SS, in Fast486OpcodePopReg.

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

lib/fast486/opcodes.c

index 1d60160..539b8fe 100644 (file)
@@ -541,7 +541,7 @@ FAST486_OPCODE_HANDLER(Fast486OpcodePushReg)
 FAST486_OPCODE_HANDLER(Fast486OpcodePopReg)
 {
     ULONG Value;
 FAST486_OPCODE_HANDLER(Fast486OpcodePopReg)
 {
     ULONG Value;
-    BOOLEAN Size = State->SegmentRegs[FAST486_REG_SS].Size;
+    BOOLEAN Size = State->SegmentRegs[FAST486_REG_CS].Size;
 
     TOGGLE_OPSIZE(Size);
     NO_LOCK_PREFIX();
 
     TOGGLE_OPSIZE(Size);
     NO_LOCK_PREFIX();