X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/e453fe965695996f7796d22783fa2c77645e717d..c4825ef73a5f190b8f39c59df098c3f39fa4464b:/src/msw/control.cpp 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