Merge pull request #1400 from RaiKoHoff/Dev_NewFeatures

Avoid deletion of "recent items" section in ini-file
This commit is contained in:
Rainer Kottenhoff 2019-07-07 19:25:31 +02:00 committed by GitHub
commit 2a932c5a08
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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