regedit: Import files using 'rb' mode.

Signed-off-by: Hugh McMaster <hugh.mcmaster@outlook.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
oldstable
Hugh McMaster 2016-12-30 10:00:12 +00:00 committed by Alexandre Julliard
parent 7912563f7f
commit 56959b1808
1 changed files with 2 additions and 2 deletions

View File

@ -334,10 +334,10 @@ static BOOL InitOpenFileName(HWND hWnd, OPENFILENAMEW *pofn)
static BOOL import_registry_filename(LPWSTR filename)
{
static const WCHAR mode_r[] = {'r',0};
static const WCHAR rb_mode[] = {'r','b',0};
BOOL Success;
FILE* reg_file = _wfopen(filename, mode_r);
FILE* reg_file = _wfopen(filename, rb_mode);
if(!reg_file)
return FALSE;