- Remove the APC from the list and then set it as not inserted, instead of backwards.
authorAlex Ionescu <aionescu@gmail.com>
Mon, 15 Aug 2005 22:44:32 +0000 (22:44 +0000)
committerAlex Ionescu <aionescu@gmail.com>
Mon, 15 Aug 2005 22:44:32 +0000 (22:44 +0000)
svn path=/trunk/; revision=17407

reactos/ntoskrnl/ke/apc.c

index ef5e425..ec6fcf0 100644 (file)
@@ -674,8 +674,8 @@ KiDeliverApc(KPROCESSOR_MODE DeliveryMode,
             }
 
             /* Dequeue the APC */
-            Apc->Inserted = FALSE;
             RemoveEntryList(ApcListEntry);
+            Apc->Inserted = FALSE;
 
             /* Go back to APC_LEVEL */
             KeReleaseSpinLock(&Thread->ApcQueueLock, OldIrql);