[PARPORT]
authorThomas Faber <thomas.faber@reactos.org>
Mon, 16 Nov 2015 19:56:00 +0000 (19:56 +0000)
committerThomas Faber <thomas.faber@reactos.org>
Mon, 16 Nov 2015 19:56:00 +0000 (19:56 +0000)
- Initialize DeviceRelations->Count in FdoQueryBusRelations
- Don't fake success for unsupported PNP minor functions, it makes the kernel very unhappy
Powered by Special Pool

svn path=/trunk/; revision=69900

reactos/drivers/parallel/parport/fdo.c
reactos/drivers/parallel/parport/pdo.c

index 1214296..8e757c0 100644 (file)
@@ -371,6 +371,7 @@ FdoQueryBusRelations(
     i = 0;
     ObReferenceObject(DeviceExtension->AttachedRawPdo);
     DeviceRelations->Objects[i] = DeviceExtension->AttachedRawPdo;
     i = 0;
     ObReferenceObject(DeviceExtension->AttachedRawPdo);
     DeviceRelations->Objects[i] = DeviceExtension->AttachedRawPdo;
+    DeviceRelations->Count = 1;
 
     Irp->IoStatus.Information = (ULONG_PTR)DeviceRelations;
 
 
     Irp->IoStatus.Information = (ULONG_PTR)DeviceRelations;
 
index 83c31e7..5af148c 100644 (file)
@@ -161,12 +161,12 @@ NTAPI
 PdoPnp(IN PDEVICE_OBJECT DeviceObject,
        IN PIRP Irp)
 {
 PdoPnp(IN PDEVICE_OBJECT DeviceObject,
        IN PIRP Irp)
 {
+    NTSTATUS Status;
     DPRINT("PdoPnp()\n");
 
     DPRINT("PdoPnp()\n");
 
-    Irp->IoStatus.Information = 0;
-    Irp->IoStatus.Status = STATUS_SUCCESS;
+    Status = Irp->IoStatus.Status;
     IoCompleteRequest(Irp, IO_NO_INCREMENT);
     IoCompleteRequest(Irp, IO_NO_INCREMENT);
-    return STATUS_SUCCESS;
+    return Status;
 }
 
 
 }