mirror of
https://github.com/reactos/reactos.git
synced 2024-10-03 16:05:37 +00:00
- Check that the device number is not invalid
- ACPI now crashes later on VMware svn path=/trunk/; revision=46240
This commit is contained in:
parent
fa481444a7
commit
82b8272584
|
@ -466,7 +466,7 @@ AcpiOsReadPciConfiguration (
|
||||||
NTSTATUS Status;
|
NTSTATUS Status;
|
||||||
PCI_SLOT_NUMBER slot;
|
PCI_SLOT_NUMBER slot;
|
||||||
|
|
||||||
if (Register == 0)
|
if (Register == 0 || PciId->Device == 0)
|
||||||
return AE_ERROR;
|
return AE_ERROR;
|
||||||
|
|
||||||
slot.u.AsULONG = 0;
|
slot.u.AsULONG = 0;
|
||||||
|
@ -498,7 +498,7 @@ AcpiOsWritePciConfiguration (
|
||||||
ULONG buf = Value;
|
ULONG buf = Value;
|
||||||
PCI_SLOT_NUMBER slot;
|
PCI_SLOT_NUMBER slot;
|
||||||
|
|
||||||
if (Register == 0)
|
if (Register == 0 || PciId->Device == 0)
|
||||||
return AE_ERROR;
|
return AE_ERROR;
|
||||||
|
|
||||||
slot.u.AsULONG = 0;
|
slot.u.AsULONG = 0;
|
||||||
|
|
Loading…
Reference in a new issue