all repos — mgba @ 5fd48c25dccc5b2b9acdf9436f4f972daaa914f8

mGBA Game Boy Advance Emulator

mGUI: Fix crash when runner->running is null
Vicki Pfau vi@endrift.com
Sun, 09 Aug 2020 18:26:18 -0700
commit

5fd48c25dccc5b2b9acdf9436f4f972daaa914f8

parent

3b784485f81a6eada120a99b9efc09d20a8a75ed

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

jump to
M src/feature/gui/gui-runner.csrc/feature/gui/gui-runner.c

@@ -654,7 +654,7 @@ for (i = 0; runner->keySources[i].id; ++i) {

mInputMapLoad(&runner->params.keyMap, runner->keySources[i].id, mCoreConfigGetInput(&runner->config)); } } - while (runner->running(runner)) { + while (!runner->running || runner->running(runner)) { char path[PATH_MAX]; const char* preselect = mCoreConfigGetValue(&runner->config, "lastGame"); if (preselect) {