mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-04 16:26:53 +00:00
GUI: Fix null pointer dereference in mass add
When looking for duplicates if the detected game had an unknown platform or an unknown language, the string for the corresponding code is null, resulting in a null pointer dereference.
This commit is contained in:
parent
ca79603a1e
commit
e26259d758
@ -209,8 +209,8 @@ void MassAddDialog::handleTickle() {
|
||||
|
||||
// Check for existing config entries for this path/gameid/lang/platform combination
|
||||
if (_pathToTargets.contains(path)) {
|
||||
const char *resultPlatformCode = Common::getPlatformCode(result.platform);
|
||||
const char *resultLanguageCode = Common::getLanguageCode(result.language);
|
||||
Common::String resultPlatformCode = Common::getPlatformCode(result.platform);
|
||||
Common::String resultLanguageCode = Common::getLanguageCode(result.language);
|
||||
|
||||
bool duplicate = false;
|
||||
const StringArray &targets = _pathToTargets[path];
|
||||
|
Loading…
Reference in New Issue
Block a user