]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/fstream.cpp
* Fixed two memory leaks.
[wxWidgets.git] / src / common / fstream.cpp
index 4014d31031a1c5267af7ac0f01c2b861fdfba59a..3d0468bbb937e720db5f51e2679cb11799a2588b 100644 (file)
@@ -23,8 +23,6 @@
 #pragma hdrstop
 #endif
 
 #pragma hdrstop
 #endif
 
-#define BUF_TEMP_SIZE 10000
-
 // ----------------------------------------------------------------------------
 // wxFileInputStream
 // ----------------------------------------------------------------------------
 // ----------------------------------------------------------------------------
 // wxFileInputStream
 // ----------------------------------------------------------------------------
@@ -46,7 +44,10 @@ char wxFileInputStream::Peek()
 
 size_t wxFileInputStream::DoRead(void *buffer, size_t size)
 {
 
 size_t wxFileInputStream::DoRead(void *buffer, size_t size)
 {
-  return wxFile::Read(buffer, size);
+  size_t ret = wxFile::Read(buffer, size);
+  m_eof = wxFile::Eof();
+
+  return ret;
 }
 
 off_t wxFileInputStream::DoSeekInput(off_t pos, wxSeekMode mode)
 }
 
 off_t wxFileInputStream::DoSeekInput(off_t pos, wxSeekMode mode)