mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-10-15 15:07:47 +00:00
Merge pull request #13930 from Dentomologist/retroachievements_avoid_leaderboard_list_crash
RetroAchievements: Avoid crash due to uninitialized memory read
This commit is contained in:
commit
695e06ca98
@ -1027,6 +1027,9 @@ void AchievementManager::LoadGameCallback(int result, const char* error_message,
|
||||
OSD::Color::RED);
|
||||
}
|
||||
|
||||
if (game == nullptr)
|
||||
return;
|
||||
|
||||
rc_client_set_read_memory_function(instance.m_client, MemoryPeeker);
|
||||
instance.FetchGameBadges();
|
||||
instance.m_system.store(&Core::System::GetInstance(), std::memory_order_release);
|
||||
|
Loading…
Reference in New Issue
Block a user