fix crash
This commit is contained in:
@@ -785,6 +785,11 @@ static void ReadGlobalTags( const NameToData_t &mapNameToData, Song &out, Measur
|
|||||||
RString sData = it->second;
|
RString sData = it->second;
|
||||||
RString sWavID = sName.Right(2);
|
RString sWavID = sName.Right(2);
|
||||||
|
|
||||||
|
// FIXME: garbled song names seem to crash the app.
|
||||||
|
// this might not be the best place to put this code.
|
||||||
|
if( !utf8_is_valid(sData) )
|
||||||
|
continue;
|
||||||
|
|
||||||
/* Due to bugs in some programs, many BMS files have a "WAV" extension
|
/* Due to bugs in some programs, many BMS files have a "WAV" extension
|
||||||
* on files in the BMS for files that actually have some other extension.
|
* on files in the BMS for files that actually have some other extension.
|
||||||
* Do a search. Don't do a wildcard search; if sData is "song.wav",
|
* Do a search. Don't do a wildcard search; if sData is "song.wav",
|
||||||
|
|||||||
Reference in New Issue
Block a user