From 844468136006e1e02f6280aae6c4d83b78fd63ae Mon Sep 17 00:00:00 2001 From: Toni Wilen Date: Sun, 26 Nov 2023 16:31:32 +0200 Subject: [PATCH] Only check deeper archive path if inserted in floppy drive --- od-win32/win32gui.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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); } } -- 2.47.3