Compare commits

...

1 Commits

Author SHA1 Message Date
Squall Leonhart
288d2422a0 reallocate the new size instead of the old 2025-03-14 00:26:53 +11:00

View File

@@ -481,7 +481,7 @@ void gbaUpdateRomSize(int size)
if (size > romSize) {
romSize = size;
uint8_t* tmp = (uint8_t*)realloc(g_rom, SIZE_ROM);
uint8_t* tmp = (uint8_t*)realloc(g_rom, romSize);
g_rom = tmp;
uint16_t* temp = (uint16_t*)(g_rom + ((romSize + 1) & ~1));