From: Toni Wilen Date: Sat, 10 Mar 2018 10:42:42 +0000 (+0200) Subject: Directory harddrive uaehf.device support fix. X-Git-Tag: 4000~151 X-Git-Url: https://git.unchartedbackwaters.co.uk/w/?a=commitdiff_plain;h=a3d37205370e2be10923b237d7fb6d45049dfc9e;p=francis%2Fwinuae.git Directory harddrive uaehf.device support fix. --- diff --git a/hardfile.cpp b/hardfile.cpp index 947c6aaf..c4b52e5d 100644 --- a/hardfile.cpp +++ b/hardfile.cpp @@ -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);