mirror of
https://github.com/reactos/reactos.git
synced 2024-10-15 21:56:40 +00:00
Fix logical error in a hack.
svn path=/trunk/; revision=29661
This commit is contained in:
parent
1ba1d85baf
commit
c44c89a6ab
|
@ -369,7 +369,8 @@ FdoStartDevice(
|
||||||
|
|
||||||
AllocatedResources = IoGetCurrentIrpStackLocation(Irp)->Parameters.StartDevice.AllocatedResources;
|
AllocatedResources = IoGetCurrentIrpStackLocation(Irp)->Parameters.StartDevice.AllocatedResources;
|
||||||
/* HACK due to a bug in ACPI driver, which doesn't report the bus number */
|
/* 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;
|
FoundBuggyAllocatedResourcesList = TRUE;
|
||||||
DPRINT1("No bus number resource found (bug in acpi.sys?), assuming bus number #0\n");
|
DPRINT1("No bus number resource found (bug in acpi.sys?), assuming bus number #0\n");
|
||||||
|
|
Loading…
Reference in a new issue