-user apc was called with incorrect SystemParameter1

svn path=/trunk/; revision=6832
This commit is contained in:
Gunnar Dalsnes 2003-11-30 20:03:01 +00:00
parent 33ab7e9567
commit 863613cbbd

View file

@ -147,7 +147,10 @@ IoSecondStageCompletion_KernelApcRoutine(
IN OUT PVOID *SystemArgument2
)
{
IoFreeIrp((PIRP)(*SystemArgument1));
PIRP Irp;
Irp = CONTAINING_RECORD(Apc, IRP, Tail.Apc);
IoFreeIrp(Irp);
}
@ -190,8 +193,7 @@ IoSecondStageCompletion(
/*
Remove synchronous irp's from the threads cleanup list.
To synchronize with the code inserting the entry, this code must run
at APC_LEVEL, thou this routine is currently (incorrecly?) called at
irql's from 0 to 2.
at APC_LEVEL
*/
if (!IsListEmpty(&Irp->ThreadListEntry))
{
@ -289,7 +291,7 @@ IoSecondStageCompletion(
UserApcContext);
KeInsertQueueApc( &Irp->Tail.Apc,
Irp,
Irp->UserIosb,
NULL,
PriorityBoost);