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
@@ -42,6 +42,7 @@ - Debugger: Don't skip undefined instructions when debugger attached
- Qt: Force OpenGL paint engine creation thread (fixes mgba.io/i/1642) - Qt: Fix OpenGL 2.1 support (fixes mgba.io/i/1678) - Qt: Fix static compilation in MinGW (fixes mgba.io/i/1769) + - Qt: Fix unmapping zipped ROM (fixes mgba.io/i/1777) Misc: - 3DS: Clean up legacy initialization (fixes mgba.io/i/1768) - Debugger: Keep track of global cycle count
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); } }