Wrong usage of enum

This commit is contained in:
twinaphex 2016-12-08 03:02:30 +01:00
parent 91dd0756dd
commit b0fcdf9db4
2 changed files with 13 additions and 5 deletions

View File

@ -1576,7 +1576,7 @@ static void xmb_init_horizontal_list(xmb_handle_t *xmb)
strlcpy(info.path,
settings->directory.playlist,
sizeof(info.path));
strlcpy(info.exts, FILE_PATH_LPL_EXTENSION_NO_DOT, sizeof(info.exts));
strlcpy(info.exts, file_path_str(FILE_PATH_LPL_EXTENSION_NO_DOT), sizeof(info.exts));
if (menu_displaylist_ctl(DISPLAYLIST_DATABASE_PLAYLISTS_HORIZONTAL, &info))
{

View File

@ -3912,7 +3912,9 @@ static bool menu_displaylist_push_internal(
menu_displaylist_reset_filebrowser();
info->type = 42;
strlcpy(info->exts, FILE_PATH_LPL_EXTENSION_NO_DOT, sizeof(info->exts));
strlcpy(info->exts,
file_path_str(FILE_PATH_LPL_EXTENSION_NO_DOT),
sizeof(info->exts));
strlcpy(info->label,
msg_hash_to_str(MENU_ENUM_LABEL_CONTENT_COLLECTION_LIST),
sizeof(info->label));
@ -3925,7 +3927,9 @@ static bool menu_displaylist_push_internal(
{
menu_displaylist_reset_filebrowser();
info->type = 42;
strlcpy(info->exts, FILE_PATH_LPL_EXTENSION_NO_DOT, sizeof(info->exts));
strlcpy(info->exts,
file_path_str(FILE_PATH_LPL_EXTENSION_NO_DOT),
sizeof(info->exts));
strlcpy(info->label,
msg_hash_to_str(MENU_ENUM_LABEL_CONTENT_COLLECTION_LIST),
sizeof(info->label));
@ -3939,7 +3943,9 @@ static bool menu_displaylist_push_internal(
menu_displaylist_reset_filebrowser();
info->type = 42;
strlcpy(info->exts, FILE_PATH_LPL_EXTENSION_NO_DOT, sizeof(info->exts));
strlcpy(info->exts,
file_path_str(FILE_PATH_LPL_EXTENSION_NO_DOT),
sizeof(info->exts));
strlcpy(info->label,
msg_hash_to_str(MENU_ENUM_LABEL_CONTENT_COLLECTION_LIST),
sizeof(info->label));
@ -3972,7 +3978,9 @@ static bool menu_displaylist_push_internal(
menu_displaylist_reset_filebrowser();
info->type = 42;
strlcpy(info->exts, FILE_PATH_LPL_EXTENSION_NO_DOT, sizeof(info->exts));
strlcpy(info->exts,
file_path_str(FILE_PATH_LPL_EXTENSION_NO_DOT),
sizeof(info->exts));
strlcpy(info->label,
msg_hash_to_str(MENU_ENUM_LABEL_CONTENT_COLLECTION_LIST),
sizeof(info->label));