Author: jmorlan
Date: Sun Jul 20 18:00:18 2008
New Revision: 34619
URL:
http://svn.reactos.org/svn/reactos?rev=34619&view=rev
Log:
Fix KeInsertQueueApc error checking
Modified:
trunk/reactos/ntoskrnl/ke/apc.c
Modified: trunk/reactos/ntoskrnl/ke/apc.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/ke/apc.c?rev=3461…
==============================================================================
--- trunk/reactos/ntoskrnl/ke/apc.c [iso-8859-1] (original)
+++ trunk/reactos/ntoskrnl/ke/apc.c [iso-8859-1] Sun Jul 20 18:00:18 2008
@@ -724,7 +724,7 @@
KiAcquireApcLock(Thread, &ApcLock);
/* Make sure we can Queue APCs and that this one isn't already inserted */
- if (!(Thread->ApcQueueable) && (Apc->Inserted))
+ if (!(Thread->ApcQueueable) || (Apc->Inserted))
{
/* Fail */
State = FALSE;