- Add some sanity checks

svn path=/trunk/; revision=47023
This commit is contained in:
Cameron Gutman
2010-04-25 20:51:07 +00:00
parent 79b5a24bd4
commit fd9406974e
+4
View File
@@ -17,6 +17,10 @@
PVOID LockRequest( PIRP Irp, PIO_STACK_LOCATION IrpSp ) {
BOOLEAN LockFailed = FALSE;
ASSERT(IrpSp->Parameters.DeviceIoControl.Type3InputBuffer);
ASSERT(IrpSp->Parameters.DeviceIoControl.InputBufferLength);
ASSERT(!Irp->MdlAddress);
Irp->MdlAddress =
IoAllocateMdl( IrpSp->Parameters.DeviceIoControl.Type3InputBuffer,
IrpSp->Parameters.DeviceIoControl.InputBufferLength,