Only check deeper archive path if inserted in floppy drive

This commit is contained in:
Toni Wilen 2023-11-26 16:31:32 +02:00
parent 89faf8e36a
commit 8444681360

View File

@ -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);
}
}