[NDIS]
authorThomas Faber <thomas.faber@reactos.org>
Fri, 22 Sep 2017 07:31:57 +0000 (07:31 +0000)
committerThomas Faber <thomas.faber@reactos.org>
Fri, 22 Sep 2017 07:31:57 +0000 (07:31 +0000)
- Don't assert on IRP_MJ_CLEANUP
CORE-7630

svn path=/trunk/; revision=75922

reactos/drivers/network/ndis/ndis/miniport.c

index b20701e..904158d 100644 (file)
@@ -2579,7 +2579,8 @@ NdisGenericIrpHandler(
     if (DeviceObject->DeviceType == FILE_DEVICE_PHYSICAL_NETCARD)
     {
         if ((IrpSp->MajorFunction == IRP_MJ_CREATE) ||
-            (IrpSp->MajorFunction == IRP_MJ_CLOSE))
+            (IrpSp->MajorFunction == IRP_MJ_CLOSE) ||
+            (IrpSp->MajorFunction == IRP_MJ_CLEANUP))
         {
             return NdisICreateClose(DeviceObject, Irp);
         }