X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/75ed1d15d0d866cac78f7c0da176db8dd5288bc8..bdb9dffbf6f7e0aa1473f78552a3f177da31ebdb:/src/common/mstream.cpp diff --git a/src/common/mstream.cpp b/src/common/mstream.cpp index ceec4b05bc..560c0fd1ae 100644 --- a/src/common/mstream.cpp +++ b/src/common/mstream.cpp @@ -30,8 +30,10 @@ 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()