mirror of
https://github.com/libretro/RetroArch
synced 2025-04-10 15:45:19 +00:00
(XMB) xmb_get_userdata_from_core - if i is bigger than or equal
to the 'size' of the info list, then return NULL as well
This commit is contained in:
parent
58e81410fb
commit
44eb6d8c5e
@ -736,6 +736,8 @@ static xmb_node_t* xmb_get_userdata_from_core(xmb_handle_t *xmb, int i)
|
|||||||
return NULL;
|
return NULL;
|
||||||
if (!info_list->count)
|
if (!info_list->count)
|
||||||
return NULL;
|
return NULL;
|
||||||
|
if (i >= info_list->count)
|
||||||
|
return NULL;
|
||||||
|
|
||||||
info = (core_info_t*)&info_list->list[i];
|
info = (core_info_t*)&info_list->list[i];
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user