[PATCH] regedit: Import files using 'rb' mode

Hugh McMaster hugh.mcmaster at outlook.com
Fri Dec 30 04:00:12 CST 2016


Signed-off-by: Hugh McMaster <hugh.mcmaster at outlook.com>
---
 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 b1611cf..ed3ea9f 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;
-- 
2.7.4




More information about the wine-patches mailing list