Make saving of unicode named files work under Win32

the "Long" name is converted to short (DOS 8.3) name
as soon as possible.
This commit is contained in:
Thomas Bernard
2018-02-16 12:45:07 +01:00
parent 74818299a3
commit ad219c84d2
5 changed files with 47 additions and 1 deletions

View File

@@ -3507,6 +3507,7 @@ void Save_picture(enum CONTEXT_TYPE type)
Main.image_is_modified=0;
Main.fileformat=save_context.Format;
strcpy(Main.backups->Pages->Filename, save_context.File_name);
Unicode_strlcpy(Main.backups->Pages->Filename_unicode, save_context.File_name_unicode, MAX_PATH_CHARACTERS);
strcpy(Main.backups->Pages->File_directory, save_context.File_directory);
}
if (type == CONTEXT_BRUSH)