Fix #4711: Cannot open System Dialogue Window when saving game

Another regression from e5ff7412e4, we want to append an extension, not a directory.
This commit is contained in:
Ted John 2016-10-29 14:55:14 +01:00
parent 09c37d6465
commit 43ec7febff
1 changed files with 1 additions and 1 deletions

View File

@ -716,7 +716,7 @@ bool platform_open_common_file_dialog(utf8 *outFilename, file_dialog_desc *desc,
const utf8 *pattern = desc->filters[filterIndex].pattern;
const utf8 *patternExtension = path_get_extension(pattern);
if (!str_is_null_or_empty(patternExtension)) {
safe_strcat_path(outFilename, patternExtension, outSize);
safe_strcat(outFilename, patternExtension, outSize);
}
}
}