Make MemoryBase::Unmap() return a value.

This commit is contained in:
Unknown W. Brackets 2014-04-27 20:27:36 -07:00
parent 2f7fbf01cf
commit b550ccfc73
2 changed files with 4 additions and 1 deletions

View File

@ -474,6 +474,7 @@ public:
bool Unmap(const u64 addr)
{
bool result = false;
for(uint i=0; i<MemoryBlocks.size(); ++i)
{
if(MemoryBlocks[i]->IsMirror())
@ -482,9 +483,11 @@ public:
{
delete MemoryBlocks[i];
MemoryBlocks.erase(MemoryBlocks.begin() + i);
return true;
}
}
}
return false;
}
u8* operator + (const u64 vaddr)

View File

@ -28,7 +28,7 @@ struct MemBlockInfo : public MemInfo
{
if(!mem)
{
ConLog.Error("Not enought free memory.");
ConLog.Error("Not enough free memory.");
assert(0);
}
memset(mem, 0, size);