[ntoskrnl]
authorMichael Martin <michael.martin@reactos.org>
Sun, 24 Apr 2011 06:48:50 +0000 (06:48 +0000)
committerMichael Martin <michael.martin@reactos.org>
Sun, 24 Apr 2011 06:48:50 +0000 (06:48 +0000)
- Fix a type from rev 19847. Only if the KernelMode List is not empty are there pending APCs.

svn path=/trunk/; revision=51442

reactos/ntoskrnl/ke/procobj.c

index ce337fe..5b14949 100644 (file)
@@ -538,7 +538,7 @@ KeDetachProcess(VOID)
     KiExitDispatcher(ApcLock.OldIrql);
 
     /* Check if we have pending APCs */
-    if (IsListEmpty(&Thread->ApcState.ApcListHead[KernelMode]))
+    if (!(IsListEmpty(&Thread->ApcState.ApcListHead[KernelMode])))
     {
         /* What do you know, we do! Request them to be delivered */
         Thread->ApcState.KernelApcPending = TRUE;
@@ -705,7 +705,7 @@ KeUnstackDetachProcess(IN PRKAPC_STATE ApcState)
     KiExitDispatcher(ApcLock.OldIrql);
 
     /* Check if we have pending APCs */
-    if (IsListEmpty(&Thread->ApcState.ApcListHead[KernelMode]))
+    if (!(IsListEmpty(&Thread->ApcState.ApcListHead[KernelMode])))
     {
         /* What do you know, we do! Request them to be delivered */
         Thread->ApcState.KernelApcPending = TRUE;