From 0ab54e4a6486c62723cb4a3ce5f52337673b7ca5 Mon Sep 17 00:00:00 2001 From: Hugh McMaster Date: Mon, 18 Sep 2017 08:27:43 +0000 Subject: [PATCH] regedit: Export Unicode registry files by default. Signed-off-by: Hugh McMaster Signed-off-by: Alexandre Julliard --- programs/regedit/framewnd.c | 2 +- programs/regedit/regedit.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/programs/regedit/framewnd.c b/programs/regedit/framewnd.c index cb7738c0a63..c6fcee466d5 100644 --- a/programs/regedit/framewnd.c +++ b/programs/regedit/framewnd.c @@ -431,7 +431,7 @@ static BOOL InitOpenFileName(HWND hWnd, OPENFILENAMEW *pofn) snprintfW( FilterBuffer, MAX_PATH, filterW, filter_reg, 0, 0, filter_reg4, 0, 0, filter_all, 0, 0 ); } pofn->lpstrFilter = FilterBuffer; - pofn->nFilterIndex = 2; + pofn->nFilterIndex = 1; pofn->lpstrFile = FileNameBuffer; pofn->nMaxFile = _MAX_PATH; pofn->lpstrFileTitle = FileTitleBuffer; diff --git a/programs/regedit/regedit.c b/programs/regedit/regedit.c index 4dd889bb488..4dd71ca38f9 100644 --- a/programs/regedit/regedit.c +++ b/programs/regedit/regedit.c @@ -157,9 +157,9 @@ static void PerformRegAction(REGEDIT_ACTION action, WCHAR **argv, int *i) WCHAR *key_name = argv[++(*i)]; if (key_name && *key_name) - export_registry_key(filename, key_name, REG_FORMAT_4); + export_registry_key(filename, key_name, REG_FORMAT_5); else - export_registry_key(filename, NULL, REG_FORMAT_4); + export_registry_key(filename, NULL, REG_FORMAT_5); break; } default: