Author: pschweitzer
Date: Sat Oct 10 14:01:01 2015
New Revision: 69487
URL:
http://svn.reactos.org/svn/reactos?rev=69487&view=rev
Log:
[CSQ]
Add a sanity check
Modified:
trunk/reactos/lib/drivers/csq/csq.c
Modified: trunk/reactos/lib/drivers/csq/csq.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/lib/drivers/csq/csq.c?rev=…
==============================================================================
--- trunk/reactos/lib/drivers/csq/csq.c [iso-8859-1] (original)
+++ trunk/reactos/lib/drivers/csq/csq.c [iso-8859-1] Sat Oct 10 14:01:01 2015
@@ -353,8 +353,12 @@
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);