mirror of
https://github.com/libretro/RetroArch
synced 2025-02-07 03:40:24 +00:00
fix null deref
This commit is contained in:
parent
c59cbfc4e8
commit
dfd85125ad
@ -1066,7 +1066,7 @@ static void command_event_init_controllers(void)
|
||||
break;
|
||||
}
|
||||
|
||||
if (set_controller && i < info->ports.size)
|
||||
if (set_controller && info && i < info->ports.size)
|
||||
{
|
||||
pad.device = device;
|
||||
pad.port = i;
|
||||
|
@ -543,6 +543,8 @@ static void materialui_render_messagebox(materialui_handle_t *mui,
|
||||
}
|
||||
}
|
||||
|
||||
if (body_bg_color)
|
||||
{
|
||||
menu_display_set_alpha(body_bg_color, 1.0);
|
||||
|
||||
menu_display_draw_quad(
|
||||
@ -554,6 +556,7 @@ static void materialui_render_messagebox(materialui_handle_t *mui,
|
||||
width,
|
||||
height,
|
||||
&body_bg_color[0]);
|
||||
}
|
||||
|
||||
/* print each line */
|
||||
for (i = 0; i < list->size; i++)
|
||||
|
Loading…
x
Reference in New Issue
Block a user