https://git.reactos.org/?p=reactos.git;a=commitdiff;h=d0c7bd98c7ab988f9b231…
commit d0c7bd98c7ab988f9b231b184cdee5e5629b80ec
Author: Hervé Poussineau <hpoussin(a)reactos.org>
AuthorDate: Fri Mar 20 19:41:55 2020 +0100
Commit: Hervé Poussineau <hpoussin(a)reactos.org>
CommitDate: Fri Mar 20 22:40:11 2020 +0100
[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;