From 0cf30069525cd031bcf3e5206ecc438084fea502 Mon Sep 17 00:00:00 2001 From: Jeffrey Pfau Date: Sun, 25 Jan 2015 00:12:33 -0800 Subject: [PATCH] GBA Thread: Fix possible hang when loading an archive --- CHANGES | 1 + src/gba/gba-thread.c | 1 + 2 files changed, 2 insertions(+) diff --git a/CHANGES b/CHANGES index fd6c1a3d4..8c6d992a1 100644 --- a/CHANGES +++ b/CHANGES @@ -27,6 +27,7 @@ Bugfixes: - GBA BIOS: Fix BIOS prefetch after returning from an IRQ - GBA BIOS: Fix BIOS prefetch after reset - GBA Memory: Fix alignment of open bus 8- and 16-bit loads + - GBA Thread: Fix possible hang when loading an archive Misc: - GBA Audio: Change internal audio sample buffer from 32-bit to 16-bit samples - GBA Memory: Simplify memory API and use fixed bus width diff --git a/src/gba/gba-thread.c b/src/gba/gba-thread.c index 2ab71f12c..5be65d6c8 100644 --- a/src/gba/gba-thread.c +++ b/src/gba/gba-thread.c @@ -315,6 +315,7 @@ bool GBAThreadStart(struct GBAThread* threadContext) { struct Patch patchTemp; struct VFile* vf = threadContext->gameDir->openFile(threadContext->gameDir, dirent->name(dirent), O_RDONLY); if (!vf) { + dirent = threadContext->gameDir->listNext(threadContext->gameDir); continue; } if (!threadContext->rom && GBAIsROM(vf)) {