X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/4913272f9cdead94a6d1470e51d6fb14946b50e0..6cef0db28018fd2644ee4e38af715872e5242459:/src/mac/carbon/dirmac.cpp?ds=sidebyside diff --git a/src/mac/carbon/dirmac.cpp b/src/mac/carbon/dirmac.cpp index 979f68a40e..52e9a61e0f 100644 --- a/src/mac/carbon/dirmac.cpp +++ b/src/mac/carbon/dirmac.cpp @@ -125,6 +125,7 @@ bool wxDirData::Read(wxString *filename) } wxString name ; + wxString lowerfilespec = m_filespec.Lower(); while( noErr == err ) { @@ -146,6 +147,7 @@ bool wxDirData::Read(wxString *filename) break ; name = wxMacHFSUniStrToString( &uniname ) ; + wxString lowername = name.Lower(); if ( ( name == wxT(".") || name == wxT("..") ) && !(m_flags & wxDIR_DOTDOT) ) continue; @@ -167,7 +169,7 @@ bool wxDirData::Read(wxString *filename) if ( m_filespec.empty() || m_filespec == wxT("*.*") || m_filespec == wxT("*") ) { } - else if ( !wxMatchWild(m_filespec, name , false) ) + else if ( !wxMatchWild(lowerfilespec, lowername , false) ) { continue ; }