From 87a055b1757e129d7041c1d8b3386352c3e56445 Mon Sep 17 00:00:00 2001 From: Thomas Faber Date: Mon, 16 Nov 2015 19:56:00 +0000 Subject: [PATCH 1/1] [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 svn path=/trunk/; revision=69900 --- reactos/drivers/parallel/parport/fdo.c | 1 + reactos/drivers/parallel/parport/pdo.c | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/reactos/drivers/parallel/parport/fdo.c b/reactos/drivers/parallel/parport/fdo.c index 121429649ed..8e757c0cc7b 100644 --- a/reactos/drivers/parallel/parport/fdo.c +++ b/reactos/drivers/parallel/parport/fdo.c @@ -371,6 +371,7 @@ FdoQueryBusRelations( i = 0; ObReferenceObject(DeviceExtension->AttachedRawPdo); DeviceRelations->Objects[i] = DeviceExtension->AttachedRawPdo; + DeviceRelations->Count = 1; Irp->IoStatus.Information = (ULONG_PTR)DeviceRelations; diff --git a/reactos/drivers/parallel/parport/pdo.c b/reactos/drivers/parallel/parport/pdo.c index 83c31e7f6d5..5af148caf03 100644 --- a/reactos/drivers/parallel/parport/pdo.c +++ b/reactos/drivers/parallel/parport/pdo.c @@ -161,12 +161,12 @@ NTAPI 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; } -- 2.17.1