[ros-diffs] [cgutman] 46240: - Check that the device number is not invalid - ACPI now crashes later on VMware
cgutman at svn.reactos.org
cgutman at svn.reactos.org
Wed Mar 17 08:16:09 CET 2010
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=46240&r1=46239&r2=46240&view=diff
==============================================================================
--- 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;
More information about the Ros-diffs
mailing list