mirror of
https://github.com/reactos/reactos.git
synced 2024-12-27 01:24:38 +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
|
||||
* PROJECT: ReactOS kernel
|
||||
|
@ -228,11 +228,10 @@ IofCompleteRequest (PIRP Irp, CCHAR PriorityBoost)
|
|||
Irp->PendingReturned = TRUE;
|
||||
}
|
||||
}
|
||||
|
||||
if (Irp->PendingReturned)
|
||||
Thread = &Irp->Tail.Overlay.Thread->Tcb;
|
||||
if ( Irp->PendingReturned && Thread != KeGetCurrentThread() )
|
||||
{
|
||||
DPRINT("Dispatching APC\n");
|
||||
Thread = &Irp->Tail.Overlay.Thread->Tcb;
|
||||
KeInitializeApc(&Irp->Tail.Apc,
|
||||
Thread,
|
||||
0,
|
||||
|
|
Loading…
Reference in a new issue