cellgcm: fix regression

This commit is contained in:
eladash 2018-06-02 22:07:19 +03:00 committed by kd-11
commit b3a933ba84

View file

@ -1011,7 +1011,7 @@ s32 cellGcmMapMainMemory(u32 ea, u32 size, vm::ptr<u32> offset)
// Use the offset table to find the next free io address // Use the offset table to find the next free io address
for (u32 io = RSXIOMem.GetRangeStart() >> 20, end = RSXIOMem.GetRangeEnd() >> 20, unmap_count = 1; io < end; unmap_count++) for (u32 io = RSXIOMem.GetRangeStart() >> 20, end = RSXIOMem.GetRangeEnd() >> 20, unmap_count = 1; io < end; unmap_count++)
{ {
if (static_cast<s16>(offsetTable.eaAddress[io]) < 0) if (static_cast<s16>(offsetTable.eaAddress[io + unmap_count - 1]) < 0)
{ {
if (unmap_count >= (size >> 20)) if (unmap_count >= (size >> 20))
{ {