From c44c89a6ab6a7a94927d177e075ddee513727f81 Mon Sep 17 00:00:00 2001 From: Mike Nordell Date: Thu, 18 Oct 2007 15:37:52 +0000 Subject: [PATCH] Fix logical error in a hack. svn path=/trunk/; revision=29661 --- reactos/drivers/bus/pci/fdo.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/reactos/drivers/bus/pci/fdo.c b/reactos/drivers/bus/pci/fdo.c index ad793142525..f0bc9d6cc68 100644 --- a/reactos/drivers/bus/pci/fdo.c +++ b/reactos/drivers/bus/pci/fdo.c @@ -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");