X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/574c0bbfbd2096f7ee0d10ad7222bb012e6f5ad7..e6045e08ed5218ad303ee1f3cb70dd2ad621b322:/src/msw/filedlg.cpp diff --git a/src/msw/filedlg.cpp b/src/msw/filedlg.cpp index c596792816..eaed27850c 100644 --- a/src/msw/filedlg.cpp +++ b/src/msw/filedlg.cpp @@ -241,7 +241,11 @@ int wxFileDialog::ShowModal(void) */ //======================================================================= - wxString theFilter = ( Strlen(m_wildCard) == 0 ) ? wxString("*.*") : m_wildCard; + wxString theFilter; + if ( Strlen(m_wildCard) == 0 ) + theFilter = wxString("*.*"); + else + theFilter = m_wildCard ; wxString filterBuffer; if ( !strchr( theFilter, '|' ) ) { // only one filter ==> default text