https://git.reactos.org/?p=reactos.git;a=commitdiff;h=a0d747fa5051e2795df654...
commit a0d747fa5051e2795df6549b786ba8f2c9f6e1a6 Author: Jose Carlos Jesus zecarlos1957@hotmail.com AuthorDate: Sun Apr 30 14:21:20 2023 +0100 Commit: GitHub noreply@github.com CommitDate: Sun Apr 30 15:21:20 2023 +0200
[COMDLG32] Enable saving files with different extension (#4903)
As on Windows, gives precedence to the user's extension in file names if there is one. Otherwise appends the selected extension. If not selected, append default extension. --- dll/win32/comdlg32/filedlg.c | 1 + 1 file changed, 1 insertion(+)
diff --git a/dll/win32/comdlg32/filedlg.c b/dll/win32/comdlg32/filedlg.c index cf1d2bc34c2..54bbc544aab 100644 --- a/dll/win32/comdlg32/filedlg.c +++ b/dll/win32/comdlg32/filedlg.c @@ -3099,6 +3099,7 @@ BOOL FILEDLG95_OnOpen(HWND hwnd) /* Attach the file extension with file name*/ ext = PathFindExtensionW(lpstrPathAndFile); #ifdef __REACTOS__ + if (*ext == UNICODE_NULL && fodInfos->defext) { LPWSTR filterExt = NULL, lpstrFilter = NULL, pch, pchNext; LPCWSTR the_ext = NULL;