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); } // ============================================================================