Fix some issues in sceNetAdhoc with old savestates.

This was causing the PPGe dlist to be shared with the thread, causing
weirdness and a double-free on exit.
This commit is contained in:
Unknown W. Brackets committed 2015-04-27 07:53:19 -07:00
1 parent de525f36d1
commit afe52db366
3 files changed
+27 -8

No files matched your search

+5
View File
@@ -330,6 +330,11 @@ void BlockAllocator::CheckBlocks() const
}
}
const char *BlockAllocator::GetBlockTag(u32 addr) const {
const Block *b = GetBlockFromAddress(addr);
return b->tag;
}
inline BlockAllocator::Block *BlockAllocator::GetBlockFromAddress(u32 addr)
{
for (Block *bp = bottom_; bp != NULL; bp = bp->next)