Commit 1a61a4e1 authored by Hugh McMaster's avatar Hugh McMaster Committed by Alexandre Julliard

regedit: Append '.reg' file extension if necessary.

parent f5fe9a6c
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment