]> git.unchartedbackwaters.co.uk Git - francis/winuae.git/commitdiff
Directory harddrive uaehf.device support fix.
authorToni Wilen <twilen@winuae.net>
Sat, 10 Mar 2018 10:42:42 +0000 (12:42 +0200)
committerToni Wilen <twilen@winuae.net>
Sat, 10 Mar 2018 10:42:42 +0000 (12:42 +0200)
hardfile.cpp

index 947c6aaf298f3f2f85149caaeb268b856b242c39..c4b52e5d0f10c9c990a17126cacce82bf342ea59 100644 (file)
@@ -2442,7 +2442,7 @@ static uae_u32 REGPARAM2 hardfile_open (TrapContext *ctx)
                struct hardfileprivdata *hfpd = &hardfpd[unit];
                struct hardfiledata *hfd = get_hardfile_data_controller(unit);
                if (hfd) {
-                       if (is_hardfile(hfd->ci.controller_type_unit) == FILESYS_VIRTUAL) {
+                       if (is_hardfile(unit) == FILESYS_VIRTUAL) {
                                if (start_thread(ctx, unit)) {
                                        hfpd->directorydrive = true;
                                        trap_put_word(ctx, hfpd->base + 32, trap_get_word(ctx, hfpd->base + 32) + 1);