diff --git a/reactos/lib/drivers/csq/csq.c b/reactos/lib/drivers/csq/csq.c index a8e8d6a7e07..b570bcdfdba 100644 --- a/reactos/lib/drivers/csq/csq.c +++ b/reactos/lib/drivers/csq/csq.c @@ -353,8 +353,12 @@ IoCsqRemoveIrp( Context = (PIO_CSQ_IRP_CONTEXT)InterlockedExchangePointer(&Irp->Tail.Overlay.DriverContext[3], NULL); - if(Context && Context->Type == IO_TYPE_CSQ_IRP_CONTEXT) + if (Context && Context->Type == IO_TYPE_CSQ_IRP_CONTEXT) + { Context->Irp = NULL; + + ASSERT(Context->Csq == Csq); + } } while(0);