]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/ftp.cpp
wxUSE_IOSTREAMH changes
[wxWidgets.git] / src / common / ftp.cpp
index 461dd934177e1eb9d2887e9e5ae20d6d048f90e7..579f0b22ee23dc2831090e06671bc5f60cada2ed 100644 (file)
@@ -240,7 +240,7 @@ public:
     : wxSocketInputStream(*sock), m_ftp(ftp_clt) {}
   virtual ~wxInputFTPStream(void)
   { 
-     if (Eof())
+     if (LastError() != wxStream_NOERROR)
        m_ftp->GetResult('2');
      else
        m_ftp->Abort();
@@ -256,7 +256,7 @@ public:
     : wxSocketOutputStream(*sock), m_ftp(ftp_clt) {}
   virtual ~wxOutputFTPStream(void)
   {
-     if (Bad())
+     if (LastError() != wxStream_NOERROR)
        m_ftp->GetResult('2');
      else
        m_ftp->Abort();