X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/15169ab34118dbc617d499b683adcb7e4f64a961..bf31b1d6d809287f3e874d29cf1bc576a27b4290:/src/mac/carbon/dirmac.cpp 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 ; }