PCI: Mask out the strict flag when checking if the added card is not on-board, fixes bridge adding.

This commit is contained in:
OBattler
2024-10-24 22:06:53 +02:00
parent ed62184d61
commit b435dfd5e4

View File

@@ -885,7 +885,7 @@ pci_register_cards(void)
type = pci_card_descs[i].type; type = pci_card_descs[i].type;
slot = pci_card_descs[i].slot; slot = pci_card_descs[i].slot;
#endif #endif
normal = (pci_card_descs[i].type == PCI_CARD_NORMAL); normal = ((pci_card_descs[i].type & ~PCI_ADD_STRICT) == PCI_CARD_NORMAL);
/* If this is a normal card, increase the next normal card index. */ /* If this is a normal card, increase the next normal card index. */
if (normal) if (normal)