mirror of
https://github.com/libretro/RetroArch.git
synced 2024-11-23 16:09:47 +00:00
Prevent crash
This commit is contained in:
parent
adc359ec7a
commit
9e9e6bd8b4
@ -292,7 +292,9 @@ static void menu_driver_toggle(bool latch)
|
||||
runloop_ctl(RUNLOOP_CTL_SYSTEM_INFO_GET, &system);
|
||||
|
||||
if (menu_driver->toggle)
|
||||
menu_driver->toggle(menu_driver_data->userdata, latch);
|
||||
menu_driver->toggle(
|
||||
menu_driver_data ? menu_driver_data->userdata : NULL,
|
||||
latch);
|
||||
|
||||
if (latch)
|
||||
menu_driver_ctl(RARCH_MENU_CTL_SET_ALIVE, NULL);
|
||||
|
Loading…
Reference in New Issue
Block a user