Author: tfaber
Date: Fri Sep 22 07:28:29 2017
New Revision: 75921
URL:
http://svn.reactos.org/svn/reactos?rev=75921&view=rev
Log:
[NDIS]
- Don't assert on unimplemented ioctl. Print the control code instead.
CORE-7630
Modified:
trunk/reactos/drivers/network/ndis/ndis/miniport.c
Modified: trunk/reactos/drivers/network/ndis/ndis/miniport.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/network/ndis/ndis/…
==============================================================================
--- trunk/reactos/drivers/network/ndis/ndis/miniport.c [iso-8859-1] (original)
+++ trunk/reactos/drivers/network/ndis/ndis/miniport.c [iso-8859-1] Fri Sep 22 07:28:29
2017
@@ -2293,13 +2293,15 @@
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 @@
break;
default:
- ASSERT(FALSE);
+ NDIS_DbgPrint(MIN_TRACE, ("NdisIDeviceIoControl: unsupported control code
0x%lx\n", ControlCode));
break;
}