mirror of
https://github.com/rizonesoft/Notepad3.git
synced 2026-06-14 21:09:05 +08:00
+ fix: avoid deletion of "recent items" section in ini-file
This commit is contained in:
parent
8d8cb2d88f
commit
edbb096c4b
@ -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);
|
||||
}
|
||||
// ============================================================================
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user