From: Toni Wilen Date: Sun, 26 Nov 2023 14:31:32 +0000 (+0200) Subject: Only check deeper archive path if inserted in floppy drive X-Git-Tag: 5.1.0~35 X-Git-Url: https://git.unchartedbackwaters.co.uk/w/?a=commitdiff_plain;h=844468136006e1e02f6280aae6c4d83b78fd63ae;p=francis%2Fwinuae.git Only check deeper archive path if inserted in floppy drive --- diff --git a/od-win32/win32gui.cpp b/od-win32/win32gui.cpp index de6e43cb..bf3fa74f 100644 --- a/od-win32/win32gui.cpp +++ b/od-win32/win32gui.cpp @@ -22519,8 +22519,9 @@ int dragdrop (HWND hDlg, HDROP hd, struct uae_prefs *prefs, int currentpage) if (type == ZFILE_ROM) { rd = getromdatabyzfile (z); } - // replace with decrunched path but only if decrunched path is deeper (longer) - if (type > 0 && _tcslen(z->name) > _tcslen(file)) { + // replace with decrunched path but only if + // floppy insert and decrunched path is deeper (longer) + if (type > 0 && _tcslen(z->name) > _tcslen(file) && drv >= 0) { _tcscpy(filepath, z->name); } }