Implement IRP_MN_QUERY_DEVICE_RELATIONS
authorHervé Poussineau <hpoussin@reactos.org>
Wed, 23 Nov 2005 20:16:34 +0000 (20:16 +0000)
committerHervé Poussineau <hpoussin@reactos.org>
Wed, 23 Nov 2005 20:16:34 +0000 (20:16 +0000)
Activate code in IRP_MN_STOP_DEVICE

svn path=/trunk/; revision=19497

reactos/drivers/net/ndis/ndis/miniport.c

index 3f42363..c8dd4c4 100644 (file)
@@ -1533,9 +1533,6 @@ NdisIDispatchPnp(
         break;
 
       case IRP_MN_STOP_DEVICE:
         break;
 
       case IRP_MN_STOP_DEVICE:
-        /* FIXME */
-        Status = STATUS_UNSUCCESSFUL;
-        break;
         Status = NdisIForwardIrpAndWait(Adapter, Irp);
         if (NT_SUCCESS(Status) && NT_SUCCESS(Irp->IoStatus.Status))
           {
         Status = NdisIForwardIrpAndWait(Adapter, Irp);
         if (NT_SUCCESS(Status) && NT_SUCCESS(Irp->IoStatus.Status))
           {
@@ -1545,6 +1542,12 @@ NdisIDispatchPnp(
         IoCompleteRequest(Irp, IO_NO_INCREMENT);
         break;
 
         IoCompleteRequest(Irp, IO_NO_INCREMENT);
         break;
 
+      case IRP_MN_QUERY_DEVICE_RELATIONS:
+        Status = STATUS_NOT_SUPPORTED;
+        Irp->IoStatus.Status = Status;
+        IoCompleteRequest(Irp, IO_NO_INCREMENT);
+        break;
+
       default:
         IoSkipCurrentIrpStackLocation(Irp);
         Status = IoCallDriver(Adapter->NdisMiniportBlock.NextDeviceObject, Irp);
       default:
         IoSkipCurrentIrpStackLocation(Irp);
         Status = IoCallDriver(Adapter->NdisMiniportBlock.NextDeviceObject, Irp);