mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 10:04:49 +00:00
Fixed IoCompleteRequest() to directly call completion function, rather than queue an APC, if the target thread == current thread, because the APC code doesn't seem to correctly handle queueing an APC to the current thread
svn path=/trunk/; revision=1777
This commit is contained in:
parent
b2a5aa012c
commit
9b90a6532b
1 changed files with 3 additions and 4 deletions
|
@ -1,4 +1,4 @@
|
||||||
/* $Id: irp.c,v 1.34 2001/03/07 16:48:42 dwelch Exp $
|
/* $Id: irp.c,v 1.35 2001/04/06 04:29:16 phreak Exp $
|
||||||
*
|
*
|
||||||
* COPYRIGHT: See COPYING in the top level directory
|
* COPYRIGHT: See COPYING in the top level directory
|
||||||
* PROJECT: ReactOS kernel
|
* PROJECT: ReactOS kernel
|
||||||
|
@ -228,11 +228,10 @@ IofCompleteRequest (PIRP Irp, CCHAR PriorityBoost)
|
||||||
Irp->PendingReturned = TRUE;
|
Irp->PendingReturned = TRUE;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Thread = &Irp->Tail.Overlay.Thread->Tcb;
|
||||||
if (Irp->PendingReturned)
|
if ( Irp->PendingReturned && Thread != KeGetCurrentThread() )
|
||||||
{
|
{
|
||||||
DPRINT("Dispatching APC\n");
|
DPRINT("Dispatching APC\n");
|
||||||
Thread = &Irp->Tail.Overlay.Thread->Tcb;
|
|
||||||
KeInitializeApc(&Irp->Tail.Apc,
|
KeInitializeApc(&Irp->Tail.Apc,
|
||||||
Thread,
|
Thread,
|
||||||
0,
|
0,
|
||||||
|
|
Loading…
Reference in a new issue