X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/2ba4130573b01a7427f8fdd8349093f830ddfbd9..cee14ca0c5e9d4d525172f44bab921323becb962:/src/msw/iniconf.cpp diff --git a/src/msw/iniconf.cpp b/src/msw/iniconf.cpp index 1c91682df3..7bcce6e8f2 100644 --- a/src/msw/iniconf.cpp +++ b/src/msw/iniconf.cpp @@ -300,13 +300,11 @@ bool wxIniConfig::DoReadString(const wxString& szKey, wxString *pstr) const GetProfileString(m_strGroup, strKey, "", szBuf, WXSIZEOF(szBuf)); } - if ( ::IsEmpty(szBuf) ) { + if ( ::IsEmpty(szBuf) ) return FALSE; - } - else { - *pstr = szBuf ; - return TRUE; - } + + *pstr = szBuf; + return TRUE; } bool wxIniConfig::DoReadLong(const wxString& szKey, long *pl) const