mirror of
https://github.com/libretro/RetroArch.git
synced 2024-11-28 02:30:35 +00:00
Fix segfault with null menu driver. (#7913)
This commit is contained in:
parent
5bedd981ec
commit
d25b632b88
@ -2072,8 +2072,9 @@ static bool menu_driver_init_internal(bool video_is_threaded)
|
||||
if (menu_driver_data)
|
||||
return true;
|
||||
|
||||
menu_driver_data = (menu_handle_t*)
|
||||
menu_driver_ctx->init(&menu_userdata, video_is_threaded);
|
||||
if (menu_driver_ctx->init)
|
||||
menu_driver_data = (menu_handle_t*)
|
||||
menu_driver_ctx->init(&menu_userdata, video_is_threaded);
|
||||
|
||||
if (!menu_driver_data || !menu_init(menu_driver_data))
|
||||
goto error;
|
||||
|
Loading…
Reference in New Issue
Block a user