X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/2ba4130573b01a7427f8fdd8349093f830ddfbd9..3f2b72b2403dd29aa93167ce0ce7d20e1d20f1bd:/src/msw/iniconf.cpp?ds=inline 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