Pass label_hash to menu_cbs_init_bind_right_compare_type

This commit is contained in:
twinaphex 2015-06-27 14:46:50 +02:00
parent f8cec441a3
commit ae66caa98f

View File

@ -342,7 +342,7 @@ static int bind_right_generic(unsigned type, const char *label,
}
static int menu_cbs_init_bind_right_compare_type(menu_file_list_cbs_t *cbs,
unsigned type, uint32_t menu_label_hash)
unsigned type, uint32_t label_hash, uint32_t menu_label_hash)
{
if (type >= MENU_SETTINGS_SHADER_PARAMETER_0
&& type <= MENU_SETTINGS_SHADER_PARAMETER_LAST)
@ -493,7 +493,7 @@ int menu_cbs_init_bind_right(menu_file_list_cbs_t *cbs,
if (menu_cbs_init_bind_right_compare_label(cbs, label, label_hash, menu_label_hash, elem0) == 0)
return 0;
if (menu_cbs_init_bind_right_compare_type(cbs, type, menu_label_hash) == 0)
if (menu_cbs_init_bind_right_compare_type(cbs, type, label_hash, menu_label_hash) == 0)
return 0;
return -1;