]> git.saurik.com Git - wxWidgets.git/blobdiff - src/os2/button.cpp
don't access the window after it had been deleted by the focus event handler (patch...
[wxWidgets.git] / src / os2 / button.cpp
index 838cc7413ba7e7b7a306ea91c15c5a71773ed931..746e0300c4152d61e25846103e94e3ae6c30483c 100644 (file)
@@ -80,7 +80,7 @@ bool wxButton::Create( wxWindow*          pParent,
 
     m_hWnd = (WXHWND)::WinCreateWindow( GetHwndOf(pParent)   // Parent handle
                                        ,WC_BUTTON            // A Button class window
-                                       ,(PSZ)sLabel.c_str()  // Button text
+                                       ,sLabel.c_str()  // Button text
                                        ,lStyle               // Button style
                                        ,0, 0, 0, 0           // Location and size
                                        ,GetHwndOf(pParent)   // Owner handle