mirror of
https://github.com/86Box/probing-tools.git
synced 2026-02-24 10:28:21 -07:00
clib: Fix PCI bus scan crash on Windows
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user