mirror of https://github.com/OpenRCT2/OpenRCT2.git
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:
parent
09c37d6465
commit
43ec7febff
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue