(OSX) Buildfixes

This commit is contained in:
Twinaphex 2016-12-13 01:32:41 +01:00
parent fcd49b0341
commit 7feea5d2e8
2 changed files with 9 additions and 4 deletions

View File

@ -640,9 +640,14 @@ static int frontend_darwin_parse_drive_list(void *data)
CFSearchPathForDirectoriesInDomains(CFDocumentDirectory, CFUserDomainMask, 1, home_dir_buf, sizeof(home_dir_buf)); CFSearchPathForDirectoriesInDomains(CFDocumentDirectory, CFUserDomainMask, 1, home_dir_buf, sizeof(home_dir_buf));
menu_entries_append_enum(list, menu_entries_append_enum(list,
home_dir_buf, "", MSG_UNKNOWN, FILE_TYPE_DIRECTORY, 0, 0); home_dir_buf,
menu_entries_append_enum(list, "/", "", msg_hash_to_str(MENU_ENUM_LABEL_FILE_DETECT_CORE_LIST_PUSH_DIR),
MSG_UNKNOWN, FILE_TYPE_DIRECTORY, 0, 0); MENU_ENUM_LABEL_FILE_DETECT_CORE_LIST_PUSH_DIR,
MENU_SETTING_ACTION, 0, 0);
menu_entries_append_enum(list, "/",
msg_hash_to_str(MENU_ENUM_LABEL_FILE_DETECT_CORE_LIST_PUSH_DIR),
MENU_ENUM_LABEL_FILE_DETECT_CORE_LIST_PUSH_DIR,
MENU_SETTING_ACTION, 0, 0);
ret = 0; ret = 0;

View File

@ -568,7 +568,7 @@ static int general_push(menu_displaylist_info_t *info,
} }
break; break;
case PUSH_DETECT_CORE_LIST: case PUSH_DETECT_CORE_LIST:
if (!string_is_empty(list->all_ext)) if (list && !string_is_empty(list->all_ext))
strlcpy(info->exts, list->all_ext, sizeof(info->exts)); strlcpy(info->exts, list->all_ext, sizeof(info->exts));
else if (system_menu->valid_extensions) else if (system_menu->valid_extensions)
{ {