mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-06-27 17:39:34 -06:00
Fix memory bounds error in achievements dev
This particular out of bounds error was causing every memory read at the far end of memory to return all zeroes.
This commit is contained in:
@ -1316,7 +1316,7 @@ u32 AchievementManager::MemoryPeeker(u32 address, u8* buffer, u32 num_bytes, rc_
|
||||
if (instance.m_dll_found)
|
||||
{
|
||||
std::lock_guard lg{instance.m_memory_lock};
|
||||
if (u64(address) + num_bytes >= instance.m_cloned_memory.size())
|
||||
if (u64(address) + num_bytes > instance.m_cloned_memory.size())
|
||||
{
|
||||
ERROR_LOG_FMT(ACHIEVEMENTS,
|
||||
"Attempt to read past memory size: size {} address {} write length {}",
|
||||
|
Reference in New Issue
Block a user