Correctly match ranges in memchecks with ends.

This commit is contained in:
Unknown W. Brackets committed 2013-07-05 01:16:57 -07:00
1 parent d2b874436d
commit 540bd13222
2 files changed
+6 -6

No files matched your search

+2 -2
View File
@@ -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 &check;
}
else
{
if (check.start==address)
if (check.start == address)
return &check;
}
}