From 3ff20c7899c05b74c022cb3ada79866561526d56 Mon Sep 17 00:00:00 2001 From: OBattler Date: Sat, 8 Nov 2025 03:36:21 +0100 Subject: [PATCH] ISA PnP: Add the missing else in isapnp_enable_card(). --- src/device/isapnp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/device/isapnp.c b/src/device/isapnp.c index 3129cd1c8..561367003 100644 --- a/src/device/isapnp.c +++ b/src/device/isapnp.c @@ -1196,7 +1196,7 @@ isapnp_enable_card(void *priv, uint8_t enable) if ((card->enable) && (dev->current_ld_card != NULL) && (dev->current_ld_card != card)) { dev->current_ld = NULL; dev->current_ld_card = NULL; - } if (!card->enable) { + } else if (!card->enable) { if (dev->isolated_card == card) dev->isolated_card = NULL; if ((dev->current_ld_card == card) && (old_enable != ISAPNP_CARD_FORCE_CONFIG)) {