From edbb096c4b2102090fe0a421deab6eb8561f4fe7 Mon Sep 17 00:00:00 2001 From: Rainer Kottenhoff Date: Sun, 7 Jul 2019 18:52:52 +0200 Subject: [PATCH] + fix: avoid deletion of "recent items" section in ini-file --- src/Config/Config.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Config/Config.cpp b/src/Config/Config.cpp index ad34a5364..41a3ef4f8 100644 --- a/src/Config/Config.cpp +++ b/src/Config/Config.cpp @@ -199,7 +199,7 @@ extern "C" bool IniSectionDelete(LPCWSTR lpSectionName, LPCWSTR lpKeyName, bool extern "C" bool IniSectionClear(LPCWSTR lpSectionName, bool bRemoveEmpty) { - return s_INI.Delete(lpSectionName, nullptr, bRemoveEmpty); + return s_INI.Delete(lpSectionName, bRemoveEmpty ? nullptr : L"", bRemoveEmpty); } // ============================================================================