mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-14 10:09:32 +01:00
Correctly match ranges in memchecks with ends.
This commit is contained in:
1 parent
d2b874436d
commit
540bd13222
2 files changed
+6
-6
No files matched your search
@@ -248,12 +248,12 @@ MemCheck *CBreakPoints::GetMemCheck(u32 address, int size)
|
||||
MemCheck &check = *iter;
|
||||
if (check.end != 0)
|
||||
{
|
||||
if (address >= check.start && address + size < check.end)
|
||||
if (address + size >= check.start && address < check.end)
|
||||
return ✓
|
||||
}
|
||||
else
|
||||
{
|
||||
if (check.start==address)
|
||||
if (check.start == address)
|
||||
return ✓
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user