From 43ec7febff6e030b651f82255e3e3fcbea370ade Mon Sep 17 00:00:00 2001 From: Ted John Date: Sat, 29 Oct 2016 14:55:14 +0100 Subject: [PATCH] Fix #4711: Cannot open System Dialogue Window when saving game Another regression from e5ff7412e4913407b7ba2e7a6c9b3186a0947655, we want to append an extension, not a directory. --- src/platform/windows.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/platform/windows.c b/src/platform/windows.c index 4a8585dfb1..82fe20673b 100644 --- a/src/platform/windows.c +++ b/src/platform/windows.c @@ -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); } } }