[NTOSKRNL]: When you rewrite my ASM code, get it right, dumbasses. Thanks Stefan.
authorAlex Ionescu <aionescu@gmail.com>
Sun, 19 Feb 2012 00:08:50 +0000 (00:08 +0000)
committerAlex Ionescu <aionescu@gmail.com>
Sun, 19 Feb 2012 00:08:50 +0000 (00:08 +0000)
svn path=/trunk/; revision=55690

reactos/ntoskrnl/include/internal/i386/trap_x.h

index 35e1fa9..0b8673a 100644 (file)
@@ -171,7 +171,7 @@ KiExitSystemCallDebugChecks(IN ULONG SystemCall,
         }
 
         /* Make sure we're not attached and that APCs are not disabled */
-        if ((KeGetCurrentThread()->ApcStateIndex != CurrentApcEnvironment) ||
+        if ((KeGetCurrentThread()->ApcStateIndex != OriginalApcEnvironment) ||
             (KeGetCurrentThread()->CombinedApcDisable != 0))
         {
             /* Fail */