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("");