From 8ad904c398e0303935120ec42a50104052ec9e76 Mon Sep 17 00:00:00 2001 From: Bruno Jesus <00cpxxx@gmail.com> Date: Sat, 19 Nov 2011 22:06:51 -0200 Subject: [PATCH] regedit: Allow binary files to be imported. --- programs/regedit/regedit.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/programs/regedit/regedit.c b/programs/regedit/regedit.c index cc0fc3addb9..fe08501ce75 100644 --- a/programs/regedit/regedit.c +++ b/programs/regedit/regedit.c @@ -159,7 +159,7 @@ static BOOL PerformRegAction(REGEDIT_ACTION action, LPSTR s) getAppName(), filename, GetLastError()); exit(1); } - reg_file = fopen(realname, "r"); + reg_file = fopen(realname, "rb"); if (reg_file == NULL) { perror("");