]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/registry.cpp
OS X compilation fix
[wxWidgets.git] / src / msw / registry.cpp
index 48fe7ab96b208e18a0d8eafde2040b5df77d530d..fb496d100f48c37895dd4e8a7fad61075496078c 100644 (file)
@@ -24,6 +24,7 @@
     #include "wx/string.h"
     #include "wx/intl.h"
     #include "wx/log.h"
+    #include "wx/crt.h"
 #endif
 
 #include "wx/file.h"
@@ -1125,7 +1126,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();