X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/c67daf87774c71ae9f73af9969008af220e52a11..f57fe24c6389876d7ddf02aa7a09f3b48a6956de:/user/wxFile/wxFile.cpp?ds=sidebyside diff --git a/user/wxFile/wxFile.cpp b/user/wxFile/wxFile.cpp index 63c3ed03f6..5c93b977df 100644 --- a/user/wxFile/wxFile.cpp +++ b/user/wxFile/wxFile.cpp @@ -155,10 +155,9 @@ MyFrame::MyFrame(void) : m_leftFile = (wxFileCtrl *) NULL; m_dir = new wxDirCtrl( m_splitter, ID_DIRCTRL, "/", wxPoint(10,45), wxSize(200,330) ); - wxString homepath( "/home" ); - char buf[300]; - wxGetHomeDir( buf ); - homepath = buf; + wxString homepath; + wxGetHomeDir( &homepath ); + m_rightFile = new wxFileCtrl( m_splitter, ID_FILECTRL, homepath, wxPoint(220,5), wxSize(200,330) ); m_leftFile = new wxFileCtrl( m_splitter, ID_FILECTRL, homepath, wxPoint(0,5), wxSize(200,330) );