From 7fddcab108a8790fc89d3d6beeac9a9df57e29c5 Mon Sep 17 00:00:00 2001 From: Themaister Date: Sat, 27 Apr 2013 23:19:38 +0200 Subject: [PATCH] If rarch_main_wrap_init fails, exit instead of crash. --- frontend/frontend.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/frontend.c b/frontend/frontend.c index 9c2287d05b..426d929cd9 100644 --- a/frontend/frontend.c +++ b/frontend/frontend.c @@ -76,7 +76,7 @@ int main(int argc, char *argv[]) else { RARCH_ERR("rarch_main_init() failed.\n"); - g_extern.lifecycle_mode_state |= (1ULL << MODE_MENU); + return 1; } g_extern.lifecycle_mode_state &= ~(1ULL << MODE_INIT);