mGUI: Fix crash when runner->running is null
Vicki Pfau vi@endrift.com
Sun, 09 Aug 2020 18:26:18 -0700
1 files changed,
1 insertions(+),
1 deletions(-)
jump to
M
src/feature/gui/gui-runner.c
→
src/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) {