[NTOS]
authorTimo Kreuzer <timo.kreuzer@reactos.org>
Wed, 17 Mar 2010 16:17:16 +0000 (16:17 +0000)
committerTimo Kreuzer <timo.kreuzer@reactos.org>
Wed, 17 Mar 2010 16:17:16 +0000 (16:17 +0000)
I forgot to set the exit function for systems without sysenter/sysexit support. Should fix sysreg.

svn path=/trunk/; revision=46250

reactos/ntoskrnl/ke/i386/cpu.c

index 49055b7..9434259 100644 (file)
@@ -1018,6 +1018,11 @@ KiRestoreFastSyscallReturnState(VOID)
             KiFastCallExitHandler = KiSystemCallTrapReturn;
         }
     }
+    else
+    {
+        /* Use the IRET handler */
+        KiFastCallExitHandler = KiSystemCallTrapReturn;
+    }
 }
 
 ULONG_PTR