- Don't assert on unimplemented ioctl. Print the control code instead.
CORE-7630

svn path=/trunk/; revision=75921
This commit is contained in:
Thomas Faber
2017-09-22 07:28:29 +00:00
parent d40669cdad
commit 95646b73c9
+4 -2
View File
@@ -2293,13 +2293,15 @@ NdisIDeviceIoControl(
PLOGICAL_ADAPTER Adapter = (PLOGICAL_ADAPTER)DeviceObject->DeviceExtension;
PIO_STACK_LOCATION Stack = IoGetCurrentIrpStackLocation(Irp);
NDIS_STATUS Status = STATUS_NOT_SUPPORTED;
ULONG ControlCode;
ULONG Written;
Irp->IoStatus.Information = 0;
ASSERT(Adapter);
switch (Stack->Parameters.DeviceIoControl.IoControlCode)
ControlCode = Stack->Parameters.DeviceIoControl.IoControlCode;
switch (ControlCode)
{
case IOCTL_NDIS_QUERY_GLOBAL_STATS:
Status = MiniQueryInformation(Adapter,
@@ -2311,7 +2313,7 @@ NdisIDeviceIoControl(
break;
default:
ASSERT(FALSE);
NDIS_DbgPrint(MIN_TRACE, ("NdisIDeviceIoControl: unsupported control code 0x%lx\n", ControlCode));
break;
}