Fix KeInsertQueueApc error checking

svn path=/trunk/; revision=34619
This commit is contained in:
Jeffrey Morlan
2008-07-20 23:00:18 +00:00
parent ec2194d205
commit 1ee0441036
+1 -1
View File
@@ -724,7 +724,7 @@ KeInsertQueueApc(IN PKAPC Apc,
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;