diff --git a/reactos/drivers/bus/acpi/osl.c b/reactos/drivers/bus/acpi/osl.c index 1c55c32cb1a..d86e70bcb7c 100644 --- a/reactos/drivers/bus/acpi/osl.c +++ b/reactos/drivers/bus/acpi/osl.c @@ -466,7 +466,7 @@ AcpiOsReadPciConfiguration ( NTSTATUS Status; PCI_SLOT_NUMBER slot; - if (Register == 0) + if (Register == 0 || PciId->Device == 0) return AE_ERROR; slot.u.AsULONG = 0; @@ -498,7 +498,7 @@ AcpiOsWritePciConfiguration ( ULONG buf = Value; PCI_SLOT_NUMBER slot; - if (Register == 0) + if (Register == 0 || PciId->Device == 0) return AE_ERROR; slot.u.AsULONG = 0;