Author: mnordell Date: Thu Oct 18 19:37:52 2007 New Revision: 29661
URL: http://svn.reactos.org/svn/reactos?rev=29661&view=rev Log: Fix logical error in a hack.
Modified: trunk/reactos/drivers/bus/pci/fdo.c
Modified: trunk/reactos/drivers/bus/pci/fdo.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/bus/pci/fdo.c?rev=2... ============================================================================== --- trunk/reactos/drivers/bus/pci/fdo.c (original) +++ trunk/reactos/drivers/bus/pci/fdo.c Thu Oct 18 19:37:52 2007 @@ -369,7 +369,8 @@
AllocatedResources = IoGetCurrentIrpStackLocation(Irp)->Parameters.StartDevice.AllocatedResources; /* HACK due to a bug in ACPI driver, which doesn't report the bus number */ - if (!FoundBuggyAllocatedResourcesList || !AllocatedResources || AllocatedResources->Count == 0) + if (!FoundBuggyAllocatedResourcesList && + (!AllocatedResources || AllocatedResources->Count == 0)) { FoundBuggyAllocatedResourcesList = TRUE; DPRINT1("No bus number resource found (bug in acpi.sys?), assuming bus number #0\n");