From 1a1e5047e825c5560affcfc48fca9dae1f09322d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Higor=20Eur=C3=ADpedes?= Date: Sat, 2 Sep 2017 20:21:02 -0300 Subject: [PATCH] (xmb) Fix crash while scanning --- menu/drivers/xmb.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/menu/drivers/xmb.c b/menu/drivers/xmb.c index 31aeb6f284..6b59b5d009 100755 --- a/menu/drivers/xmb.c +++ b/menu/drivers/xmb.c @@ -1432,11 +1432,10 @@ static xmb_node_t *xmb_node_allocate_userdata(xmb_handle_t *xmb, unsigned i) node->zoom = xmb->categories.active.zoom; } - tmp = (xmb_node_t*)file_list_get_actiondata_at_offset(xmb->horizontal_list, i); - + tmp = (xmb_node_t*)file_list_get_userdata_at_offset(xmb->horizontal_list, i); xmb_free_node(tmp); - file_list_set_actiondata(xmb->horizontal_list, i, node); + file_list_set_userdata(xmb->horizontal_list, i, node); return node; } @@ -1445,7 +1444,7 @@ static xmb_node_t* xmb_get_userdata_from_horizontal_list( xmb_handle_t *xmb, unsigned i) { return (xmb_node_t*) - menu_entries_get_actiondata_at_offset(xmb->horizontal_list, i); + menu_entries_get_userdata_at_offset(xmb->horizontal_list, i); } static void xmb_push_animations(xmb_node_t *node, uintptr_t tag, float ia, float ix)