From 465789bd5c9e2b260f3a3387c369dc27880820d0 Mon Sep 17 00:00:00 2001 From: TC1995 Date: Tue, 16 Jun 2020 16:44:25 +0200 Subject: [PATCH] Fixed the fix 3 (grr). --- src/floppy/fdc.c | 4 ++-- src/win/Makefile.mingw | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/floppy/fdc.c b/src/floppy/fdc.c index fb5e24e62..94d588bd6 100644 --- a/src/floppy/fdc.c +++ b/src/floppy/fdc.c @@ -174,9 +174,9 @@ fdc_ext_get_id(char *s) { int c = 0; - while (strlen((char *) fdc_devices[c].name)) + while (strlen((char *) fdc_devices[c].internal_name)) { - if (!strcmp((char *) fdc_devices[c].name, s)) + if (!strcmp((char *) fdc_devices[c].internal_name, s)) return c; c++; } diff --git a/src/win/Makefile.mingw b/src/win/Makefile.mingw index 7511ba61c..3d48ac37a 100644 --- a/src/win/Makefile.mingw +++ b/src/win/Makefile.mingw @@ -598,7 +598,8 @@ SIOOBJ := sio_acc3221.o \ sio_w83877f.o sio_w83977f.o \ sio_um8669f.o -FDDOBJ := fdd.o fdc.o fdi2raw.o \ +FDDOBJ := fdd.o fdc.o fdc_pii15xb.o \ + fdi2raw.o \ fdd_common.o fdd_86f.o \ fdd_fdi.o fdd_imd.o fdd_img.o fdd_json.o \ fdd_mfm.o fdd_td0.o