mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-01-06 13:18:46 +00:00
Fix really stupid heap corruption mistake.
This commit is contained in:
parent
ccf021cef0
commit
ada492febe
@ -770,7 +770,7 @@ private:
|
||||
int size = cur->end - cur->first;
|
||||
if (size >= cur->capacity - 2)
|
||||
{
|
||||
SceUID *new_data = (SceUID *)realloc(cur->data, cur->capacity * sizeof(SceUID));
|
||||
SceUID *new_data = (SceUID *)realloc(cur->data, cur->capacity * 2 * sizeof(SceUID));
|
||||
if (new_data != NULL)
|
||||
{
|
||||
cur->capacity *= 2;
|
||||
|
Loading…
Reference in New Issue
Block a user