Fix logical error in a hack.

svn path=/trunk/; revision=29661
This commit is contained in:
Mike Nordell 2007-10-18 15:37:52 +00:00
parent 1ba1d85baf
commit c44c89a6ab

View file

@ -369,7 +369,8 @@ FdoStartDevice(
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");