From 1b99fb16b8f866226ccd17c4f2393856179f5196 Mon Sep 17 00:00:00 2001 From: Decaf Code Date: Fri, 23 Nov 2018 13:57:33 -0500 Subject: [PATCH] hook/iohook.c: Remove ioctl asserts These assertions don't seem to hold for certain real ioctl errors. --- hook/iohook.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/hook/iohook.c b/hook/iohook.c index b85e78e..67d0beb 100644 --- a/hook/iohook.c +++ b/hook/iohook.c @@ -915,9 +915,6 @@ static BOOL WINAPI iohook_DeviceIoControl( hr = iohook_invoke_next(&irp); - assert(irp.write.pos <= irp.write.nbytes); - assert(irp.read.pos <= irp.read.nbytes); - if (FAILED(hr)) { /* Special case: ERROR_MORE_DATA requires this out parameter to be propagated, per MSDN. All ioctls in the entire process that go via