From 9b598d2fe4c5ae49180fd381c742e5cb8a0973f0 Mon Sep 17 00:00:00 2001 From: Vicki Pfau Date: Thu, 11 Jul 2024 14:09:35 -0700 Subject: [PATCH] GBA Core: Fix crash after loading debug symbols (fixes #3254) --- src/gba/core.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/gba/core.c b/src/gba/core.c index 6b8d15f1d..11b1ccfc4 100644 --- a/src/gba/core.c +++ b/src/gba/core.c @@ -1265,11 +1265,13 @@ static void _GBACoreLoadSymbols(struct mCore* core, struct VFile* vf) { } #endif if (!vf && gba->mbVf) { + closeAfter = false; vf = gba->mbVf; seek = vf->seek(vf, 0, SEEK_CUR); vf->seek(vf, 0, SEEK_SET); } if (!vf && gba->romVf) { + closeAfter = false; vf = gba->romVf; seek = vf->seek(vf, 0, SEEK_CUR); vf->seek(vf, 0, SEEK_SET);