all repos — mgba @ 33a675c07e46fff0cf74c45271e4b2d702b79aa0

mGBA Game Boy Advance Emulator

Qt: Fix unmapping zipped ROM (fixes #1777)
Vicki Pfau vi@endrift.com
Sat, 06 Jun 2020 17:24:20 -0700
commit

33a675c07e46fff0cf74c45271e4b2d702b79aa0

parent

48006dd83ebc8222f9a3e895f79ac278577ce5d2

2 files changed, 2 insertions(+), 1 deletions(-)

jump to
M CHANGESCHANGES

@@ -21,6 +21,7 @@ - Core: Fix crash modifying hash table entry (fixes mgba.io/i/1673)

- GB Video: Fix some cases where SGB border doesn't draw to mutli-buffers - GBA: Reject incorrectly sized BIOSes - Qt: Fix OpenGL 2.1 support (fixes mgba.io/i/1678) + - Qt: Fix unmapping zipped ROM (fixes mgba.io/i/1777) Misc: - 3DS: Clean up legacy initialization (fixes mgba.io/i/1768) - GBA Serialize: Only flunk BIOS check if official BIOS was expected
M src/platform/qt/CoreManager.cppsrc/platform/qt/CoreManager.cpp

@@ -65,7 +65,7 @@ ssize_t size;

if (vfOriginal && (size = vfOriginal->size(vfOriginal)) > 0) { void* mem = vfOriginal->map(vfOriginal, size, MAP_READ); vf = VFileMemChunk(mem, size); - vfOriginal->unmap(vfOriginal, mem, (size_t) read); + vfOriginal->unmap(vfOriginal, mem, size); vfOriginal->close(vfOriginal); } }