]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/registry.cpp
use wx/crt.h as the 'official' header for wxCRT wrappers instead of wxchar.h; add...
[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();