]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/filedlg.cpp
don't use wxString::FromASCII() with possibly non-ASCII strings (fixes asserts when...
[wxWidgets.git] / src / msw / filedlg.cpp
index d1bb4157092629ef348156ea617ce905186a05bb..0cc25b19d6a77f1aba06954f35e0ed158cba216a 100644 (file)
@@ -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;
 }