Author: mjmartin
Date: Sun Apr 24 06:48:50 2011
New Revision: 51442
URL:
http://svn.reactos.org/svn/reactos?rev=51442&view=rev
Log:
[ntoskrnl]
- Fix a type from rev 19847. Only if the KernelMode List is not empty are there pending
APCs.
Modified:
trunk/reactos/ntoskrnl/ke/procobj.c
Modified: trunk/reactos/ntoskrnl/ke/procobj.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/ke/procobj.c?rev=…
==============================================================================
--- trunk/reactos/ntoskrnl/ke/procobj.c [iso-8859-1] (original)
+++ trunk/reactos/ntoskrnl/ke/procobj.c [iso-8859-1] Sun Apr 24 06:48:50 2011
@@ -538,7 +538,7 @@
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 @@
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;