From 6993ae4ae2a0fc0948b18326402b851f4e8bea36 Mon Sep 17 00:00:00 2001 From: Vizzini Date: Sun, 20 Jun 2004 03:29:29 +0000 Subject: [PATCH] fixed a bug in IoCsqRemoveNextIrp (missing break) svn path=/trunk/; revision=9739 --- reactos/drivers/lib/csq/csq.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/reactos/drivers/lib/csq/csq.c b/reactos/drivers/lib/csq/csq.c index 701fca33875..1b656724460 100644 --- a/reactos/drivers/lib/csq/csq.c +++ b/reactos/drivers/lib/csq/csq.c @@ -362,7 +362,8 @@ PIRP NTAPI IoCsqRemoveNextIrp(PIO_CSQ Csq, /* * If the cancel routine is gone, we're already canceled, * and are spinning on the queue lock in our own cancel - * routine. Move on to the next candidate. + * routine. Move on to the next candidate. It'll get + * removed by the cance routine. */ if(!IoSetCancelRoutine(Irp, NULL)) continue; @@ -374,6 +375,8 @@ PIRP NTAPI IoCsqRemoveNextIrp(PIO_CSQ Csq, if(Context && Context->Type == IO_TYPE_CSQ_IRP_CONTEXT) Context->Irp = NULL; + + break; } Csq->CsqReleaseLock(Csq, Irql);