mirror of
https://github.com/dborth/vbagx.git
synced 2024-11-25 20:16:53 +01:00
IPS patch correction
This commit is contained in:
parent
6864390b7f
commit
1d17d3f185
@ -171,8 +171,12 @@ bool patchApplyIPS(MFILE * f, u8 **r, int *s) {
|
||||
b = -1;
|
||||
// check if we need to reallocate our ROM
|
||||
if ((offset + len) >= size) {
|
||||
#ifdef NGC
|
||||
size = offset + len;
|
||||
#else
|
||||
size *= 2;
|
||||
rom = (u8 *) realloc(rom, size);
|
||||
#endif
|
||||
*r = rom;
|
||||
*s = size;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user