]> git.saurik.com Git - wxWidgets.git/blobdiff - src/os2/checkbox.cpp
Blind fix for bug #1209944, wxFileConfig constructor corrupts the stack
[wxWidgets.git] / src / os2 / checkbox.cpp
index 83480a8ef2ff54c281fd68f3c1e27b536de6e982..e4df8924462741969f23333aa2d434c61930f489 100644 (file)
@@ -106,7 +106,8 @@ void wxCheckBox::SetLabel(
   const wxString&                   rsLabel
 )
 {
-    ::WinSetWindowText(GetHwnd(), rsLabel.c_str());
+    wxString                         sLabel=::wxPMTextToLabel(rsLabel);
+    ::WinSetWindowText(GetHwnd(), (PSZ)sLabel.c_str());
 } // end of wxCheckBox::SetLabel
 
 wxSize wxCheckBox::DoGetBestSize() const