mirror of
https://github.com/CTCaer/RetroArch.git
synced 2024-12-23 11:18:25 +00:00
(XMB) Fix a segfault during menu toggle
This commit is contained in:
parent
85e29125de
commit
3d3370b725
@ -2902,7 +2902,7 @@ void setting_data_get_label(void *data, char *type_str,
|
||||
size_t type_str_size, unsigned *w, unsigned type,
|
||||
const char *menu_label, const char *label, unsigned idx)
|
||||
{
|
||||
file_list_t *list = (file_list_t*)data;
|
||||
file_list_t *list = (file_list_t*)data;
|
||||
rarch_setting_t *setting_data = NULL;
|
||||
rarch_setting_t *setting = NULL;
|
||||
|
||||
@ -2917,6 +2917,9 @@ void setting_data_get_label(void *data, char *type_str,
|
||||
label, idx)) == 0)
|
||||
return;
|
||||
|
||||
if (!label)
|
||||
return;
|
||||
|
||||
#if defined(HAVE_CG) || defined(HAVE_HLSL) || defined(HAVE_GLSL)
|
||||
if ((!strcmp(menu_label, "Shader Options") ||
|
||||
!strcmp(menu_label, "video_shader_parameters") ||
|
||||
|
Loading…
Reference in New Issue
Block a user