X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/e408bf5257ead0754de5ef37a39867c7536dbe03..23fb33aa4e15110d41b5a16fff438e44e0cb3ea9:/src/msw/filedlg.cpp diff --git a/src/msw/filedlg.cpp b/src/msw/filedlg.cpp index 546b6c7ab0..0cc25b19d6 100644 --- a/src/msw/filedlg.cpp +++ b/src/msw/filedlg.cpp @@ -167,7 +167,7 @@ void wxFileDialog::GetFilenames(wxArrayString& files) const void wxFileDialog::SetPath(const wxString& path) { wxString ext; - wxSplitPath(path, &m_dir, &m_fileName, &ext); + wxFileName::SplitPath(path, &m_dir, &m_fileName, &ext); if ( !ext.empty() ) m_fileName << _T('.') << ext; } @@ -494,7 +494,7 @@ int wxFileDialog::ShowModal() //=== Setting defaultFileName >>========================================= - wxStrlcpy(fileNameBuffer, m_fileName, WXSIZEOF(fileNameBuffer)); + wxStrlcpy(fileNameBuffer, m_fileName.c_str(), WXSIZEOF(fileNameBuffer)); of.lpstrFile = fileNameBuffer; // holds returned filename of.nMaxFile = wxMAXPATH;