]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/registry.cpp
provide both const char* and const wchar_t* implicit conversion of wxCStrData regardl...
[wxWidgets.git] / src / msw / registry.cpp
index 48fe7ab96b208e18a0d8eafde2040b5df77d530d..224927aa1b27777d11ec6a93446cda66af968984 100644 (file)
@@ -1125,7 +1125,7 @@ static inline bool WriteAsciiString(wxOutputStream& ostr, const wxString& s)
     wxCharBuffer name(s.mb_str());
     ostr.Write(name, strlen(name));
 #else
-    ostr.Write(s, s.length());
+    ostr.Write(s.mb_str(), s.length());
 #endif
 
     return ostr.IsOk();