X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/574c0bbfbd2096f7ee0d10ad7222bb012e6f5ad7..de4d7713bc86b4cd8444fd48ea882a67273f1d03:/src/msw/iniconf.cpp?ds=inline diff --git a/src/msw/iniconf.cpp b/src/msw/iniconf.cpp index c249619a24..0bf6bf2ab4 100644 --- a/src/msw/iniconf.cpp +++ b/src/msw/iniconf.cpp @@ -304,6 +304,7 @@ bool wxIniConfig::Read(const wxString& szKey, wxString *pstr) const return FALSE; } else { + *pstr = szBuf ; return TRUE; } } @@ -332,6 +333,7 @@ bool wxIniConfig::Read(const wxString& szKey, wxString *pstr, return FALSE; } else { + *pstr = szBuf ; return TRUE; } } @@ -355,7 +357,7 @@ bool wxIniConfig::Read(const wxString& szKey, long *pl) const // is it really nMagic? lVal = GetPrivateProfileInt(m_strGroup, strKey, nMagic2, m_strLocalFilename); - if ( lVal == nMagic ) { + if ( lVal == nMagic2 ) { // the nMagic it returned was indeed read from the file *pl = lVal; return TRUE;