Author: tfaber
Date: Mon Nov 16 19:56:00 2015
New Revision: 69900
URL:
http://svn.reactos.org/svn/reactos?rev=69900&view=rev
Log:
[PARPORT]
- Initialize DeviceRelations->Count in FdoQueryBusRelations
- Don't fake success for unsupported PNP minor functions, it makes the kernel very
unhappy
Powered by Special Pool
Modified:
trunk/reactos/drivers/parallel/parport/fdo.c
trunk/reactos/drivers/parallel/parport/pdo.c
Modified: trunk/reactos/drivers/parallel/parport/fdo.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/parallel/parport/f…
==============================================================================
--- trunk/reactos/drivers/parallel/parport/fdo.c [iso-8859-1] (original)
+++ trunk/reactos/drivers/parallel/parport/fdo.c [iso-8859-1] Mon Nov 16 19:56:00 2015
@@ -371,6 +371,7 @@
i = 0;
ObReferenceObject(DeviceExtension->AttachedRawPdo);
DeviceRelations->Objects[i] = DeviceExtension->AttachedRawPdo;
+ DeviceRelations->Count = 1;
Irp->IoStatus.Information = (ULONG_PTR)DeviceRelations;
Modified: trunk/reactos/drivers/parallel/parport/pdo.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/parallel/parport/p…
==============================================================================
--- trunk/reactos/drivers/parallel/parport/pdo.c [iso-8859-1] (original)
+++ trunk/reactos/drivers/parallel/parport/pdo.c [iso-8859-1] Mon Nov 16 19:56:00 2015
@@ -161,12 +161,12 @@
PdoPnp(IN PDEVICE_OBJECT DeviceObject,
IN PIRP Irp)
{
+ NTSTATUS Status;
DPRINT("PdoPnp()\n");
- Irp->IoStatus.Information = 0;
- Irp->IoStatus.Status = STATUS_SUCCESS;
+ Status = Irp->IoStatus.Status;
IoCompleteRequest(Irp, IO_NO_INCREMENT);
- return STATUS_SUCCESS;
+ return Status;
}