X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/227989f3e96d846023d36a797931875c57fbae6d..e2bc58263e2f512c6fc46e7d0871ff0306dba865:/src/common/file.cpp?ds=inline diff --git a/src/common/file.cpp b/src/common/file.cpp index 8aaa9ac05e..2b837569a2 100644 --- a/src/common/file.cpp +++ b/src/common/file.cpp @@ -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; }