X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/227989f3e96d846023d36a797931875c57fbae6d..f050bdbd5b69ed1a6752102f0c4c13bc7cb4ed3c:/src/common/file.cpp 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; }