Author: cgutman
Date: Thu May 26 19:51:12 2011
New Revision: 51928
URL:
http://svn.reactos.org/svn/reactos?rev=51928&view=rev
Log:
[PCI]
- Inform the PnP manager that we don't support stopping devices by failing the
IRP_MN_QUERY_STOP_DEVICE IRP instead of the IRP_MN_STOP_DEVICE IRP (which is not allowed)
Modified:
trunk/reactos/drivers/bus/pci/fdo.c
Modified: trunk/reactos/drivers/bus/pci/fdo.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/bus/pci/fdo.c?rev=…
==============================================================================
--- trunk/reactos/drivers/bus/pci/fdo.c [iso-8859-1] (original)
+++ trunk/reactos/drivers/bus/pci/fdo.c [iso-8859-1] Thu May 26 19:51:12 2011
@@ -547,10 +547,6 @@
case IRP_MN_QUERY_REMOVE_DEVICE:
Status = STATUS_NOT_IMPLEMENTED;
break;
-
- case IRP_MN_QUERY_STOP_DEVICE:
- Status = STATUS_NOT_IMPLEMENTED;
- break;
#endif
case IRP_MN_START_DEVICE:
DPRINT("IRP_MN_START_DEVICE received\n");
@@ -561,12 +557,17 @@
Irp->IoStatus.Status = Status;
IoCompleteRequest(Irp, IO_NO_INCREMENT);
return Status;
- case IRP_MN_STOP_DEVICE:
- /* Currently not supported */
+
+ case IRP_MN_QUERY_STOP_DEVICE:
+ /* We don't support stopping yet */
Status = STATUS_UNSUCCESSFUL;
Irp->IoStatus.Status = Status;
IoCompleteRequest(Irp, IO_NO_INCREMENT);
return Status;
+
+ case IRP_MN_STOP_DEVICE:
+ /* We can't fail this one so we fail the QUERY_STOP request that precedes it */
+ break;
#if 0
case IRP_MN_SURPRISE_REMOVAL:
Status = STATUS_NOT_IMPLEMENTED;