[ISAPNP] Fix some return codes

This commit is contained in:
Hervé Poussineau 2020-03-20 19:41:55 +01:00
parent 947b49aac3
commit d0c7bd98c7
2 changed files with 3 additions and 3 deletions

View file

@ -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);

View file

@ -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;