use correct wait mode when checking alertability in KeDelayExecuteThread. thanks...
authorAlex Ionescu <aionescu@gmail.com>
Mon, 22 Aug 2005 23:33:51 +0000 (23:33 +0000)
committerAlex Ionescu <aionescu@gmail.com>
Mon, 22 Aug 2005 23:33:51 +0000 (23:33 +0000)
svn path=/trunk/; revision=17479

reactos/ntoskrnl/ke/wait.c

index ce53370..358a5e0 100644 (file)
@@ -111,7 +111,7 @@ KeDelayExecutionThread(KPROCESSOR_MODE WaitMode,
     do {
 
         /* We are going to wait no matter what (that's the point), so test Alertability */
-        if (KiCheckAlertability(Alertable, CurrentThread, KernelMode, &Status))
+        if (KiCheckAlertability(Alertable, CurrentThread, WaitMode, &Status))
             break;
 
         /* Set Timer */