]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/regtest/regtest.cpp
Fix a crash in wxExecute() in wxMSW too.
[wxWidgets.git] / samples / regtest / regtest.cpp
index a1147cad0681ab2ee02a366908bd4f142d8c6549..711d0241f17510f8da62179a18dd89ee050deb65 100644 (file)
@@ -367,7 +367,7 @@ RegFrame::RegFrame(wxFrame *parent, const wxChar *title, int x, int y, int w, in
         : wxFrame(parent, wxID_ANY, title, wxPoint(x, y), wxSize(w, h))
 {
     // this reduces flicker effects
-    SetBackgroundColour(wxColour(255, 255, 255));
+    SetBackgroundColour(*wxWHITE);
 
     // set the icon
     // ------------
@@ -1193,7 +1193,7 @@ const wxChar *RegTreeCtrl::TreeNode::FullName() const
         s_strName = Parent()->FullName();
         s_strName << wxT('\\') << m_strName;
 
-        return s_strName;
+        return s_strName.t_str();
     }
 }