From a48ea154975c66fdd24c405d80431e4cb4b86cdf Mon Sep 17 00:00:00 2001 From: Twinaphex Date: Fri, 17 Jun 2016 15:33:42 +0200 Subject: [PATCH] Buildfix #1 --- menu/cbs/menu_cbs_ok.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/menu/cbs/menu_cbs_ok.c b/menu/cbs/menu_cbs_ok.c index 15c14ac240..263e3fa1e5 100644 --- a/menu/cbs/menu_cbs_ok.c +++ b/menu/cbs/menu_cbs_ok.c @@ -862,7 +862,10 @@ static int generic_action_ok(const char *path, menu_entries_get_last_stack(&menu_path, NULL, NULL, NULL); - fill_pathname_join(action_path, menu_path, path, sizeof(action_path)); + if (!string_is_empty(path)) + fill_pathname_join(action_path, menu_path, path, sizeof(action_path)); + else + strlcpy(action_path, menu_path, sizeof(action_path)); switch (id) { @@ -1241,7 +1244,7 @@ static int action_ok_remap_file_save_game(const char *path, int action_ok_path_use_directory(const char *path, const char *label, unsigned type, size_t idx, size_t entry_idx) { - return generic_action_ok(path, label, type, idx, entry_idx, + return generic_action_ok(NULL, label, type, idx, entry_idx, ACTION_OK_SET_DIRECTORY, MENU_ENUM_LABEL_UNKNOWN); }