FDC37C669: Fix a wrong condition causing segmentation faults.

This commit is contained in:
OBattler
2024-01-29 11:07:11 +01:00
parent 312bec4251
commit 0483b8ceec

View File

@@ -305,7 +305,7 @@ fdc37c669_reset(void *priv)
dev->regs[0x21] = 0x3c;
dev->regs[0x22] = 0x3d;
if (dev->id == 1) {
if (dev->id != 1) {
fdc_reset(dev->fdc);
fdc37c669_fdc_handler(dev);
}