X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/ec45f8ee19190fce57180381611075d3a5b63435..ef5390661e7e0122ecaab8eeafd9a221fed3f80b:/src/common/ftp.cpp?ds=sidebyside diff --git a/src/common/ftp.cpp b/src/common/ftp.cpp index 62161ada7a..5d1731ad77 100644 --- a/src/common/ftp.cpp +++ b/src/common/ftp.cpp @@ -16,6 +16,10 @@ // For compilers that support precompilation, includes "wx.h". #include "wx/wxprec.h" +#ifdef __BORLANDC__ +#pragma hdrstop +#endif + #include #include #include "wx/string.h" @@ -154,12 +158,12 @@ bool wxFTP::GetResult(char exp) { if ((m_lastError = GetLine(this, m_lastResult))) return FALSE; - if (m_lastResult[0] != exp) { + if (m_lastResult.GetChar(0) != exp) { m_lastError = wxPROTO_PROTERR; return FALSE; } - if (m_lastResult[3] == '-') { + if (m_lastResult.GetChar(3) == '-') { wxString key = m_lastResult.Left((size_t)3); key += ' ';