Skip to content

Commit 749bc23

Browse files
committed
fix null pointer crash in xmb when scrolling
1 parent 2a08e01 commit 749bc23

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

menu/drivers/xmb.c

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7080,7 +7080,12 @@ static void xmb_render(void *data,
70807080
for (i = first; i <= last; i++)
70817081
{
70827082
xmb_node_t *node = (xmb_node_t*)selection_buf->list[i].userdata;
7083-
xmb_icons_t *thumbnail_icon = &node->thumbnail_icon;
7083+
xmb_icons_t *thumbnail_icon;
7084+
7085+
if (!node)
7086+
continue;
7087+
7088+
thumbnail_icon = &node->thumbnail_icon;
70847089

70857090
if (cur_per_frame >= max_per_frame)
70867091
{

0 commit comments

Comments
 (0)