KiAcquire/ReleaseSpinLock adaption

svn path=/trunk/; revision=7766
This commit is contained in:
Gunnar Dalsnes 2004-01-19 00:44:37 +00:00
parent 1d53ea429e
commit 848b80b405

View file

@ -435,10 +435,11 @@ KeRemoveQueueApc (PKAPC Apc)
PKTHREAD TargetThread; PKTHREAD TargetThread;
KeRaiseIrql(HIGH_LEVEL, &oldIrql); KeRaiseIrql(HIGH_LEVEL, &oldIrql);
KeAcquireSpinLockAtDpcLevel(&PiApcLock); KiAcquireSpinLock(&PiApcLock);
if (Apc->Inserted == FALSE) if (Apc->Inserted == FALSE)
{ {
KeReleaseSpinLock(&PiApcLock, oldIrql); KiReleaseSpinLock(&PiApcLock);
KeLowerIrql(oldIrql);
return(FALSE); return(FALSE);
} }
@ -454,7 +455,8 @@ KeRemoveQueueApc (PKAPC Apc)
} }
Apc->Inserted = FALSE; Apc->Inserted = FALSE;
KeReleaseSpinLock(&PiApcLock, oldIrql); KiReleaseSpinLock(&PiApcLock);
KeLowerIrql(oldIrql);
return(TRUE); return(TRUE);
} }