From: Vadim Zeitlin Date: Sun, 29 Jun 2008 21:46:29 +0000 (+0000) Subject: compilation fix for ASCII STL build (#9661) X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/619ddbbe360355c760feb140a65839aa28fc8b19 compilation fix for ASCII STL build (#9661) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54424 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/msw/control.cpp b/src/msw/control.cpp index e2e7a25e1c..745e9bd2a6 100644 --- a/src/msw/control.cpp +++ b/src/msw/control.cpp @@ -174,7 +174,7 @@ bool wxControl::MSWCreateControl(const wxChar *classname, // Notice that 0xffff is not a valid Unicode character so the problem // doesn't arise in Unicode build. if ( !label.empty() && label[0] == -1 ) - ::SetWindowText(GetHwnd(), label); + ::SetWindowText(GetHwnd(), label.wx_str()); #endif // !wxUSE_UNICODE // saving the label in m_labelOrig to return it verbatim