From 771c1b62d8b6923b67a2726ecad6e820fa380314 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Wed, 20 Jul 2022 19:43:58 +0300 Subject: fixes #3120 completely --- src/mir_app/src/db_ini.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/mir_app/src/db_ini.cpp b/src/mir_app/src/db_ini.cpp index 27e8ed79b3..8c8ac9d1f4 100644 --- a/src/mir_app/src/db_ini.cpp +++ b/src/mir_app/src/db_ini.cpp @@ -301,7 +301,7 @@ static int EnumSettingsForDeletion(const char *szSetting, void *param) static void ProcessIniFile(wchar_t* szIniPath, const char *szSafeSections, const char *szUnsafeSections, int secur, bool secFN) { - FILE *fp = _wfopen(szIniPath, L"rt"); + FILE *fp = _wfopen(szIniPath, L"rb"); if (fp == nullptr) return; -- cgit v1.2.3