]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/datstrm.cpp
More _T() in asserts...
[wxWidgets.git] / src / common / datstrm.cpp
index a13eb8cd3ab5de210eeb0ea4fdede1c93fc9f7d0..85f80d95073dcb93a10d5923852651a7ffb922c8 100644 (file)
@@ -194,8 +194,9 @@ void wxDataOutputStream::Write8(wxUint8 i)
 
 void wxDataOutputStream::WriteString(const wxString& string)
 {
+  const wxWX2MBbuf buf = string.mb_str();
   Write32(string.Length());
-  m_output->Write((const wxChar *) string, string.Length()*sizeof(wxChar));
+  m_output->Write(buf, string.Len());
 }
 
 // Must be at global scope for VC++ 5