diff --git a/reactos/ntoskrnl/ke/i386/ctxswitch.S b/reactos/ntoskrnl/ke/i386/ctxswitch.S index bb974564034..22b5ccf051d 100644 --- a/reactos/ntoskrnl/ke/i386/ctxswitch.S +++ b/reactos/ntoskrnl/ke/i386/ctxswitch.S @@ -170,12 +170,12 @@ BadThread: NoAdjust: - /* Set new ESP0 */ - //mov [ebp+KTSS_ESP0], eax - /* Save it */ push [ebp+KTSS_ESP0] + /* Set new ESP0 */ + mov [ebp+KTSS_ESP0], eax + /* Set TEB pointer */ mov eax, [esi+KTHREAD_TEB] mov [ebx+KPCR_TEB], eax