From d0c7bd98c7ab988f9b231b184cdee5e5629b80ec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Herv=C3=A9=20Poussineau?= Date: Fri, 20 Mar 2020 19:41:55 +0100 Subject: [PATCH] [ISAPNP] Fix some return codes --- drivers/bus/isapnp/hardware.c | 2 +- drivers/bus/isapnp/pdo.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/bus/isapnp/hardware.c b/drivers/bus/isapnp/hardware.c index 0803a782616..77ca6c40b4b 100644 --- a/drivers/bus/isapnp/hardware.c +++ b/drivers/bus/isapnp/hardware.c @@ -564,7 +564,7 @@ IsaHwDetectReadDataPort( if (!FdoExt->ReadDataPort) { DPRINT1("No read data port found\n"); - return STATUS_UNSUCCESSFUL; + return STATUS_INSUFFICIENT_RESOURCES; } DPRINT1("Detected read data port at 0x%p\n", FdoExt->ReadDataPort); diff --git a/drivers/bus/isapnp/pdo.c b/drivers/bus/isapnp/pdo.c index c77a2bb173b..4a674a05e0f 100644 --- a/drivers/bus/isapnp/pdo.c +++ b/drivers/bus/isapnp/pdo.c @@ -24,7 +24,7 @@ IsaPdoQueryDeviceRelations( DeviceRelations = ExAllocatePool(PagedPool, sizeof(*DeviceRelations)); if (!DeviceRelations) - return STATUS_INSUFFICIENT_RESOURCES; + return STATUS_NO_MEMORY; DeviceRelations->Count = 1; DeviceRelations->Objects[0] = PdoExt->Common.Self; @@ -47,7 +47,7 @@ IsaPdoQueryCapabilities( DeviceCapabilities = IrpSp->Parameters.DeviceCapabilities.Capabilities; if (DeviceCapabilities->Version != 1) - return STATUS_UNSUCCESSFUL; + return STATUS_REVISION_MISMATCH; DeviceCapabilities->UniqueID = LogDev->SerialNumber != 0xffffffff; DeviceCapabilities->Address = LogDev->CSN;