mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 10:04:49 +00:00
-user apc was called with incorrect SystemParameter1
svn path=/trunk/; revision=6832
This commit is contained in:
parent
33ab7e9567
commit
863613cbbd
1 changed files with 7 additions and 5 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue