Merge pull request #13930 from Dentomologist/retroachievements_avoid_leaderboard_list_crash

RetroAchievements: Avoid crash due to uninitialized memory read
This commit is contained in:
JMC47 2025-09-13 03:36:56 -04:00 committed by GitHub
commit 695e06ca98
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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);