From d980913f3145cdc34baab27ff818c9631c4c8571 Mon Sep 17 00:00:00 2001 From: Adam Jackson Date: Fri, 1 Aug 2008 16:15:04 -0400 Subject: [PATCH] Erk. Actually check all the BARs, not just the first. --- hw/xfree86/common/xf86Helper.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/xfree86/common/xf86Helper.c b/hw/xfree86/common/xf86Helper.c index c983b9ad9..d358da0bc 100644 --- a/hw/xfree86/common/xf86Helper.c +++ b/hw/xfree86/common/xf86Helper.c @@ -1556,7 +1556,7 @@ pciDeviceHasBars(struct pci_device *pci) int i; for (i = 0; i < 6; i++) - if (pci->regions[0].size) + if (pci->regions[i].size) return TRUE; if (pci->rom_size)