From 56959b18085ea22050d0226f669f112abfb37850 Mon Sep 17 00:00:00 2001 From: Hugh McMaster Date: Fri, 30 Dec 2016 10:00:12 +0000 Subject: [PATCH] regedit: Import files using 'rb' mode. Signed-off-by: Hugh McMaster Signed-off-by: Alexandre Julliard --- programs/regedit/framewnd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/programs/regedit/framewnd.c b/programs/regedit/framewnd.c index b1611cf8bad..ed3ea9f42c2 100644 --- a/programs/regedit/framewnd.c +++ b/programs/regedit/framewnd.c @@ -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;