mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-10-19 17:06:48 +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);
|
OSD::Color::RED);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (game == nullptr)
|
||||||
|
return;
|
||||||
|
|
||||||
rc_client_set_read_memory_function(instance.m_client, MemoryPeeker);
|
rc_client_set_read_memory_function(instance.m_client, MemoryPeeker);
|
||||||
instance.FetchGameBadges();
|
instance.FetchGameBadges();
|
||||||
instance.m_system.store(&Core::System::GetInstance(), std::memory_order_release);
|
instance.m_system.store(&Core::System::GetInstance(), std::memory_order_release);
|
||||||
|
Loading…
Reference in New Issue
Block a user