From: Robin Dunn Date: Thu, 13 Oct 2011 06:40:59 +0000 (+0000) Subject: Avoid an assert when m_dir is empty X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/b39badac119fe944152cd1408a90b82e710ea598 Avoid an assert when m_dir is empty git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69406 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/msw/filedlg.cpp b/src/msw/filedlg.cpp index cf0bb81e98..e45376548d 100644 --- a/src/msw/filedlg.cpp +++ b/src/msw/filedlg.cpp @@ -156,7 +156,7 @@ void wxFileDialog::GetPaths(wxArrayString& paths) const paths.Empty(); wxString dir(m_dir); - if ( m_dir.Last() != wxT('\\') ) + if ( m_dir.empty() || m_dir.Last() != wxT('\\') ) dir += wxT('\\'); size_t count = m_fileNames.GetCount();