Module: wine Branch: stable Commit: 930833331e2487720a90a58d700c7b0254d01560 URL: https://gitlab.winehq.org/wine/wine/-/commit/930833331e2487720a90a58d700c7b0...
Author: Hugh McMaster hugh.mcmaster@outlook.com Date: Thu Mar 9 21:30:26 2023 +1100
regedit: Append '.reg' file extension if necessary.
(cherry picked from commit 1a61a4e1a66f24b3c8fb2090e85f006af703741e)
---
programs/regedit/framewnd.c | 1 + 1 file changed, 1 insertion(+)
diff --git a/programs/regedit/framewnd.c b/programs/regedit/framewnd.c index 3bc60ee0f75..c2af414d268 100644 --- a/programs/regedit/framewnd.c +++ b/programs/regedit/framewnd.c @@ -493,6 +493,7 @@ static BOOL ExportRegistryFile(HWND hWnd) InitOpenFileName(hWnd, &ofn); LoadStringW(hInst, IDS_FILEDIALOG_EXPORT_TITLE, title, ARRAY_SIZE(title)); ofn.lpstrTitle = title; + ofn.lpstrDefExt = L"reg"; ofn.Flags = OFN_ENABLETEMPLATE | OFN_ENABLEHOOK | OFN_EXPLORER | OFN_HIDEREADONLY | OFN_OVERWRITEPROMPT; ofn.lpfnHook = ExportRegistryFile_OFNHookProc; ofn.lpTemplateName = MAKEINTRESOURCEW(IDD_EXPORT_TEMPLATE);