From ff1b5f81af5dce8dac0c134f0e01adffc5334347 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Mon, 22 Sep 2003 20:36:58 +0000 Subject: [PATCH] fixed bug in DeleteEntry() git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@23827 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/msw/iniconf.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/msw/iniconf.cpp b/src/msw/iniconf.cpp index f774bc97da..370256f3c0 100644 --- a/src/msw/iniconf.cpp +++ b/src/msw/iniconf.cpp @@ -380,12 +380,10 @@ bool wxIniConfig::Flush(bool /* bCurrentOnly */) bool wxIniConfig::DeleteEntry(const wxString& szKey, bool bGroupIfEmptyAlso) { // passing NULL as value to WritePrivateProfileString deletes the key -// if ( !Write(szKey, (const char *)NULL) ) -// return FALSE; wxConfigPathChanger path(this, szKey); wxString strKey = GetPrivateKeyName(path.Name()); - if (WritePrivateProfileString(m_strGroup, szKey, + if (WritePrivateProfileString(m_strGroup, strKey, (const char*) NULL, m_strLocalFilename) == 0) return FALSE; -- 2.47.2