]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/ftp.cpp
_really_ fixed translation messages
[wxWidgets.git] / src / common / ftp.cpp
index 5b11e509a0ad045ae31c711e1125b06f26cfedd7..23dde4198900c31d21441ccdbbb6afb461023116 100644 (file)
@@ -507,7 +507,7 @@ public:
     {
         delete m_i_socket;
 
-        if ( LastError() == wxStream_NOERROR )
+        if ( IsOk() )
         {
             // wait for "226 transfer completed"
             m_ftp->CheckResult('2');
@@ -672,7 +672,7 @@ wxOutputStream *wxFTP::GetOutputStream(const wxString& path)
 
     wxString tmp_str = wxT("STOR ") + path;
     if ( !CheckCommand(tmp_str, '1') )
-        return FALSE;
+        return NULL;
 
     m_streaming = TRUE;