]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/mstream.cpp
removed some test code
[wxWidgets.git] / src / common / mstream.cpp
index ceec4b05bc3074705aa8249f5d47c449bab0404d..560c0fd1ae305c729856ae51633d9b0e25824b69 100644 (file)
 wxMemoryInputStream::wxMemoryInputStream(const char *data, size_t len)
   : wxInputStream()
 {
-  m_i_streambuf->SetBufferIO((char *)data, data+len);
+  m_i_streambuf->SetBufferIO((char*) data, (char*) (data+len));
+  m_i_streambuf->SetIntPosition(0); // seek to start pos
   m_i_streambuf->Fixed(TRUE);
+  m_length = len;
 }
 
 wxMemoryInputStream::~wxMemoryInputStream()