Author: cgutman Date: Wed Mar 17 08:16:08 2010 New Revision: 46240
URL: http://svn.reactos.org/svn/reactos?rev=46240&view=rev Log: - Check that the device number is not invalid - ACPI now crashes later on VMware
Modified: trunk/reactos/drivers/bus/acpi/osl.c
Modified: trunk/reactos/drivers/bus/acpi/osl.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/bus/acpi/osl.c?rev=... ============================================================================== --- trunk/reactos/drivers/bus/acpi/osl.c [iso-8859-1] (original) +++ trunk/reactos/drivers/bus/acpi/osl.c [iso-8859-1] Wed Mar 17 08:16:08 2010 @@ -466,7 +466,7 @@ 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 @@ ULONG buf = Value; PCI_SLOT_NUMBER slot;
- if (Register == 0) + if (Register == 0 || PciId->Device == 0) return AE_ERROR;
slot.u.AsULONG = 0;