mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 10:04:49 +00:00
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:
parent
f9d4545552
commit
ae12418822
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue