mirror of
https://github.com/reactos/reactos.git
synced 2025-01-13 01:22:03 +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
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue