clib: Fix PCI bus scan crash on Windows

This commit is contained in:
RichardG867
2025-04-14 21:33:52 -03:00
parent bb50fe1bf4
commit 2f6b92aeaa

View File

@@ -179,7 +179,7 @@ pci_init_dev(uint8_t bus, uint8_t dev, uint8_t func)
pdev->bus = i;
} else {
/* Flag this bus as taken, in the unlikely case that not all bus number lookups fail. */
dummy_buses[i] = pdev->parent;
dummy_buses[pdev->bus] = pdev->parent;
}
}
}