fixed bug in DeleteEntry()

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@23827 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2003-09-22 20:36:58 +00:00
parent a974cefd4d
commit 0bbf4cf70c
2 changed files with 10 additions and 4 deletions

View File

@@ -178,6 +178,15 @@ wxThread and related classes:
OTHER CHANGES OTHER CHANGES
============= =============
2.4.3
-----
wxMSW:
- strip ampersands from strings returned by wxMenuBar::GetLabelTop()
- fixed bug in wxIniConfig::DeleteEntry() (Parinya Thipchart)
2.4.2 2.4.2
----- -----
@@ -224,7 +233,6 @@ wxMSW:
- fixed release mode build with VC 7.x (Martin Ecker) - fixed release mode build with VC 7.x (Martin Ecker)
- fix iostream.h problem with VC 7.1 (it doesn't support it any longer) - fix iostream.h problem with VC 7.1 (it doesn't support it any longer)
- compilation fix for XRC with mingw32 - compilation fix for XRC with mingw32
- strip ampersands from strings returned by wxMenuBar::GetLabelTop()
wxMotif: wxMotif:

View File

@@ -380,12 +380,10 @@ bool wxIniConfig::Flush(bool /* bCurrentOnly */)
bool wxIniConfig::DeleteEntry(const wxString& szKey, bool bGroupIfEmptyAlso) bool wxIniConfig::DeleteEntry(const wxString& szKey, bool bGroupIfEmptyAlso)
{ {
// passing NULL as value to WritePrivateProfileString deletes the key // passing NULL as value to WritePrivateProfileString deletes the key
// if ( !Write(szKey, (const char *)NULL) )
// return FALSE;
wxConfigPathChanger path(this, szKey); wxConfigPathChanger path(this, szKey);
wxString strKey = GetPrivateKeyName(path.Name()); wxString strKey = GetPrivateKeyName(path.Name());
if (WritePrivateProfileString(m_strGroup, szKey, if (WritePrivateProfileString(m_strGroup, strKey,
(const char*) NULL, m_strLocalFilename) == 0) (const char*) NULL, m_strLocalFilename) == 0)
return FALSE; return FALSE;