mirror of
https://github.com/libretro/RetroArch
synced 2025-04-10 06:44:27 +00:00
(OSX PPC) Prevent one null pointer dereference
This commit is contained in:
parent
c0212e06a9
commit
9a8a20e85a
@ -2113,7 +2113,8 @@ void rarch_main_set_state(unsigned cmd)
|
|||||||
video_driver_set_texture_enable(false, false);
|
video_driver_set_texture_enable(false, false);
|
||||||
break;
|
break;
|
||||||
case RARCH_ACTION_STATE_QUIT:
|
case RARCH_ACTION_STATE_QUIT:
|
||||||
global->system.shutdown = true;
|
if (global)
|
||||||
|
global->system.shutdown = true;
|
||||||
rarch_main_set_state(RARCH_ACTION_STATE_MENU_RUNNING_FINISHED);
|
rarch_main_set_state(RARCH_ACTION_STATE_MENU_RUNNING_FINISHED);
|
||||||
break;
|
break;
|
||||||
case RARCH_ACTION_STATE_FORCE_QUIT:
|
case RARCH_ACTION_STATE_FORCE_QUIT:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user