mirror of
https://github.com/reactos/reactos.git
synced 2026-05-31 08:17:09 +08:00
[ISAPNP] Fix some return codes
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user