mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 18:15:11 +00:00
[ISAPNP] Fix some return codes
This commit is contained in:
parent
947b49aac3
commit
d0c7bd98c7
2 changed files with 3 additions and 3 deletions
|
@ -564,7 +564,7 @@ IsaHwDetectReadDataPort(
|
||||||
if (!FdoExt->ReadDataPort)
|
if (!FdoExt->ReadDataPort)
|
||||||
{
|
{
|
||||||
DPRINT1("No read data port found\n");
|
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);
|
DPRINT1("Detected read data port at 0x%p\n", FdoExt->ReadDataPort);
|
||||||
|
|
|
@ -24,7 +24,7 @@ IsaPdoQueryDeviceRelations(
|
||||||
|
|
||||||
DeviceRelations = ExAllocatePool(PagedPool, sizeof(*DeviceRelations));
|
DeviceRelations = ExAllocatePool(PagedPool, sizeof(*DeviceRelations));
|
||||||
if (!DeviceRelations)
|
if (!DeviceRelations)
|
||||||
return STATUS_INSUFFICIENT_RESOURCES;
|
return STATUS_NO_MEMORY;
|
||||||
|
|
||||||
DeviceRelations->Count = 1;
|
DeviceRelations->Count = 1;
|
||||||
DeviceRelations->Objects[0] = PdoExt->Common.Self;
|
DeviceRelations->Objects[0] = PdoExt->Common.Self;
|
||||||
|
@ -47,7 +47,7 @@ IsaPdoQueryCapabilities(
|
||||||
|
|
||||||
DeviceCapabilities = IrpSp->Parameters.DeviceCapabilities.Capabilities;
|
DeviceCapabilities = IrpSp->Parameters.DeviceCapabilities.Capabilities;
|
||||||
if (DeviceCapabilities->Version != 1)
|
if (DeviceCapabilities->Version != 1)
|
||||||
return STATUS_UNSUCCESSFUL;
|
return STATUS_REVISION_MISMATCH;
|
||||||
|
|
||||||
DeviceCapabilities->UniqueID = LogDev->SerialNumber != 0xffffffff;
|
DeviceCapabilities->UniqueID = LogDev->SerialNumber != 0xffffffff;
|
||||||
DeviceCapabilities->Address = LogDev->CSN;
|
DeviceCapabilities->Address = LogDev->CSN;
|
||||||
|
|
Loading…
Reference in a new issue