Bail on invalid heap lookups.

This commit is contained in:
Ben Vanik 2015-06-08 17:49:54 -07:00
parent 52b8f4b54b
commit 9d7d6df476
1 changed files with 3 additions and 1 deletions

View File

@ -287,8 +287,10 @@ BaseHeap* Memory::LookupHeap(uint32_t address) {
return &heaps_.vA0000000;
} else if (address < 0xE0000000) {
return &heaps_.vC0000000;
} else {
} else if (address < 0xFFD00000) {
return &heaps_.vE0000000;
} else {
return nullptr;
}
}