Fixed unhandled error status for LastSep(std::string) (#1645)

This commit is contained in:
Sergio 2023-03-25 13:15:47 +01:00 committed by GitHub
parent 79dfb8dc8f
commit 808292e424
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -521,7 +521,8 @@ bool LoadROM(QStringList filepath, bool reset)
filelen = (u32)len; filelen = (u32)len;
int pos = LastSep(filename); int pos = LastSep(filename);
basepath = filename.substr(0, pos); if(pos != -1)
basepath = filename.substr(0, pos);
romname = filename.substr(pos+1); romname = filename.substr(pos+1);
} }
#ifdef ARCHIVE_SUPPORT_ENABLED #ifdef ARCHIVE_SUPPORT_ENABLED