X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/8f901032baddcc784a00e8d550f68a10587b7275..008a56c968ed7e0694e32e93c2dbf95dde2ba5c8:/src/common/ftp.cpp diff --git a/src/common/ftp.cpp b/src/common/ftp.cpp index f3126b2f33..23dde41989 100644 --- a/src/common/ftp.cpp +++ b/src/common/ftp.cpp @@ -507,7 +507,7 @@ public: { delete m_i_socket; - if ( LastError() == wxStream_NOERROR ) + if ( IsOk() ) { // wait for "226 transfer completed" m_ftp->CheckResult('2');