Skip to content

Commit

Permalink
Avoid assertion if listing all files and attempting to hit ENTER on a…
Browse files Browse the repository at this point in the history
… non-music file.
  • Loading branch information
mywave82 committed Dec 15, 2024
1 parent a13f609 commit 17e9f1e
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions filesel/pfilesel.c
Original file line number Diff line number Diff line change
Expand Up @@ -3573,8 +3573,11 @@ signed int fsFileSelect(void)
/* We delay mdbScan for remote files until this stage */
if (m && m->file && (m->file->compression >= COMPRESSION_REMOTE) && !(m->flags & MODLIST_FLAG_SCANNED))
{
mdbScan (m->file, m->mdb_ref, 0);
m->flags |= MODLIST_FLAG_SCANNED;
if (m->mdb_ref != UINT32_MAX) /* just in-case fsShowAllFiles added this file */
{
mdbScan (m->file, m->mdb_ref, 0);
m->flags |= MODLIST_FLAG_SCANNED;
}
}
if (win)
{
Expand Down

0 comments on commit 17e9f1e

Please sign in to comment.