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:
Phillip Susi 2001-04-06 04:29:16 +00:00
parent b2a5aa012c
commit 9b90a6532b

View file

@ -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,