X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/cc42eb7afcb5c2c5da6178617e8a2b8c3a1a6c6e..37b8e6798782278fdfe4f3c1291aaff55cdbb8c9:/src/msw/filedlg.cpp diff --git a/src/msw/filedlg.cpp b/src/msw/filedlg.cpp index 0bc3273b38..17612e6fca 100644 --- a/src/msw/filedlg.cpp +++ b/src/msw/filedlg.cpp @@ -356,7 +356,7 @@ int wxFileDialog::ShowModal() m_filterIndex = (int)of.nFilterIndex - 1; - if ( of.nFileExtension && fileNameBuffer[ of.nFileExtension-1] != wxT('.') ) + if ( !of.nFileExtension || (of.nFileExtension && fileNameBuffer[ of.nFileExtension-1] != wxT('.')) ) { // user has typed an filename // without an extension: