Qt: Fix unmapping zipped ROM (fixes #1777)
Vicki Pfau vi@endrift.com
Sat, 06 Jun 2020 17:24:20 -0700
2 files changed,
2 insertions(+),
1 deletions(-)
M
CHANGES
→
CHANGES
@@ -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.cpp
→
src/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); } }