]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/file.cpp
Make info bar buttons smaller.
[wxWidgets.git] / src / common / file.cpp
index 8aaa9ac05e64ec4eddf1c2ab06831ad2bcf2c65f..2b837569a2ed06b9106a2998f8746933f3a83670 100644 (file)
@@ -312,7 +312,12 @@ bool wxFile::Write(const wxString& s, const wxMBConv& conv)
   if ( !buf )
       return false;
 
+#if wxUSE_UNICODE
   const size_t size = buf.length();
+#else
+  const size_t size = s.length();
+#endif
+
   return Write(buf, size) == size;
 }