fixed sync problem: set dpc lock field before, rather than after droping the spin lock

svn path=/trunk/; revision=826
This commit is contained in:
Phillip Susi 1999-12-05 19:26:11 +00:00
parent f9d4545552
commit ae12418822

View file

@ -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);