(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:
twinaphex 2015-03-12 15:39:41 +01:00
parent 58e81410fb
commit 44eb6d8c5e

View File

@ -736,6 +736,8 @@ static xmb_node_t* xmb_get_userdata_from_core(xmb_handle_t *xmb, int i)
return NULL;
if (!info_list->count)
return NULL;
if (i >= info_list->count)
return NULL;
info = (core_info_t*)&info_list->list[i];