]> git.unchartedbackwaters.co.uk Git - francis/winuae.git/commitdiff
Fix hang when SCSI bus was empty.
authorToni Wilen <twilen@winuae.net>
Sat, 10 Mar 2018 10:42:20 +0000 (12:42 +0200)
committerToni Wilen <twilen@winuae.net>
Sat, 10 Mar 2018 10:42:20 +0000 (12:42 +0200)
a2091.cpp

index 200d6428f32553df35bade0ff3e3496448ed356d..6c8cba729f3c35ca4cd16c4454a41e6caa73706f 100644 (file)
--- a/a2091.cpp
+++ b/a2091.cpp
@@ -313,6 +313,7 @@ static struct wd_state *allocscsi(struct wd_state **wd, struct romconfig *rc, in
                freencrunit(*wd);
                *wd = NULL;
        }
+       configured = true;
        if ((*wd) == NULL) {
                scsi = xcalloc(struct wd_state, 1);
                for (int i = 0; i < MAX_SCSI_UNITS; i++) {
@@ -328,7 +329,6 @@ static struct wd_state *allocscsi(struct wd_state **wd, struct romconfig *rc, in
                        }
                }
        }
-       configured = true;
        return *wd;
 }