From 7e1a5245cd3e1bf588b23d46d768857713989f82 Mon Sep 17 00:00:00 2001 From: Pierre Schweitzer Date: Sat, 10 Oct 2015 14:01:01 +0000 Subject: [PATCH] [CSQ] Add a sanity check svn path=/trunk/; revision=69487 --- reactos/lib/drivers/csq/csq.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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);