regedit: Export Unicode registry files by default.

Signed-off-by: Hugh McMaster <hugh.mcmaster@outlook.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Hugh McMaster 2017-09-18 08:27:43 +00:00 committed by Alexandre Julliard
parent ee11f6fff5
commit 0ab54e4a64
2 changed files with 3 additions and 3 deletions

View file

@ -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 ); snprintfW( FilterBuffer, MAX_PATH, filterW, filter_reg, 0, 0, filter_reg4, 0, 0, filter_all, 0, 0 );
} }
pofn->lpstrFilter = FilterBuffer; pofn->lpstrFilter = FilterBuffer;
pofn->nFilterIndex = 2; pofn->nFilterIndex = 1;
pofn->lpstrFile = FileNameBuffer; pofn->lpstrFile = FileNameBuffer;
pofn->nMaxFile = _MAX_PATH; pofn->nMaxFile = _MAX_PATH;
pofn->lpstrFileTitle = FileTitleBuffer; pofn->lpstrFileTitle = FileTitleBuffer;

View file

@ -157,9 +157,9 @@ static void PerformRegAction(REGEDIT_ACTION action, WCHAR **argv, int *i)
WCHAR *key_name = argv[++(*i)]; WCHAR *key_name = argv[++(*i)];
if (key_name && *key_name) if (key_name && *key_name)
export_registry_key(filename, key_name, REG_FORMAT_4); export_registry_key(filename, key_name, REG_FORMAT_5);
else else
export_registry_key(filename, NULL, REG_FORMAT_4); export_registry_key(filename, NULL, REG_FORMAT_5);
break; break;
} }
default: default: