X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/71b5725f30bd6006f77f56ffdeb697b72241888d..0425151023593cb31da0ee0a652da173ca9abfde:/src/common/regex.cpp?ds=sidebyside diff --git a/src/common/regex.cpp b/src/common/regex.cpp index e96257c8b6..e39cde96bf 100644 --- a/src/common/regex.cpp +++ b/src/common/regex.cpp @@ -43,7 +43,9 @@ #include #endif +#ifndef __WXWINCE__ #include +#endif #include "wx/regex.h" @@ -146,9 +148,7 @@ wxString wxRegExImpl::GetErrorMsg(int errorcode) const msg = wxString(buf.data(), wxConvLibc); #else // !Unicode - (void)regerror(errorcode, &m_RegEx, msg.GetWriteBuf(len), len); - - msg.UngetWriteBuf(); + (void)regerror(errorcode, &m_RegEx, wxStringBuffer(msg, len), len); #endif // Unicode/!Unicode } else // regerror() returned 0