[CSQ]
authorPierre Schweitzer <pierre@reactos.org>
Sat, 10 Oct 2015 14:01:01 +0000 (14:01 +0000)
committerPierre Schweitzer <pierre@reactos.org>
Sat, 10 Oct 2015 14:01:01 +0000 (14:01 +0000)
Add a sanity check

svn path=/trunk/; revision=69487

reactos/lib/drivers/csq/csq.c

index a8e8d6a..b570bcd 100644 (file)
@@ -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);