From 83397d5618c5290c102b83ec68d350750468f9f4 Mon Sep 17 00:00:00 2001 From: Vicki Pfau Date: Sun, 9 Aug 2020 18:26:18 -0700 Subject: [PATCH] mGUI: Fix crash when runner->running is null --- src/feature/gui/gui-runner.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/feature/gui/gui-runner.c b/src/feature/gui/gui-runner.c index efa19c104..72ae031d1 100644 --- a/src/feature/gui/gui-runner.c +++ b/src/feature/gui/gui-runner.c @@ -651,7 +651,7 @@ void mGUIRunloop(struct mGUIRunner* runner) { 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) {