mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-04-24 22:34:54 +00: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:
parent
c0c180bdc2
commit
8b610101bc
1 changed files with 1 additions and 1 deletions
|
@ -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 {}",
|
||||
|
|
Loading…
Add table
Reference in a new issue