Fix really stupid heap corruption mistake.
This commit is contained in:
parent
ccf021cef0
commit
ada492febe
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue