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