From ae124188221b8152e1b0b56b83df3eb26f669c8e Mon Sep 17 00:00:00 2001 From: Phillip Susi Date: Sun, 5 Dec 1999 19:26:11 +0000 Subject: [PATCH] fixed sync problem: set dpc lock field before, rather than after droping the spin lock svn path=/trunk/; revision=826 --- reactos/ntoskrnl/ke/dpc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reactos/ntoskrnl/ke/dpc.c b/reactos/ntoskrnl/ke/dpc.c index 4b7a786f572..fcc18c7b94f 100644 --- a/reactos/ntoskrnl/ke/dpc.c +++ b/reactos/ntoskrnl/ke/dpc.c @@ -147,8 +147,8 @@ BOOLEAN KeInsertQueueDpc(PKDPC dpc, PVOID SystemArgument1, InsertHeadList(&DpcQueueHead,&dpc->DpcListEntry); DPRINT("dpc->DpcListEntry.Flink %x\n", dpc->DpcListEntry.Flink); DpcQueueSize++; - KeReleaseSpinLock( &DpcQueueLock, oldlvl ); dpc->Lock=(PULONG)1; + KeReleaseSpinLock( &DpcQueueLock, oldlvl ); DPRINT("DpcQueueHead.Flink %x\n",DpcQueueHead.Flink); DPRINT("Leaving KeInsertQueueDpc()\n",0); return(TRUE);