mirror of
https://github.com/libretro/RetroArch
synced 2025-01-30 12:32:52 +00:00
(Menu) Buildfix
This commit is contained in:
parent
38ce8ffcef
commit
ce79c4a4a0
@ -45,6 +45,7 @@ menu_ctx_driver_t menu_ctx_null = {
|
||||
NULL, // list_delete
|
||||
NULL, // list_clear
|
||||
NULL, // list_cache
|
||||
NULL, // list_get_size
|
||||
NULL, // list_set_selection
|
||||
NULL,
|
||||
"null",
|
||||
|
@ -264,7 +264,7 @@ size_t menu_driver_list_get_size(menu_list_type_t type)
|
||||
menu_handle_t *menu = menu_driver_get_ptr();
|
||||
const menu_ctx_driver_t *driver = menu_ctx_driver_get_ptr();
|
||||
|
||||
if (driver->list_get_size)
|
||||
if (driver && driver->list_get_size)
|
||||
return driver->list_get_size(menu, type);
|
||||
return 0;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user