X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/4de1b652eaaf96dc29f5d066f59d694fe86d1d89..4a32fcf1555f9a52a6970e52ad0191a0ee69dbf9:/src/msw/dir.cpp?ds=sidebyside diff --git a/src/msw/dir.cpp b/src/msw/dir.cpp index 42b0128b41..bfca51b322 100644 --- a/src/msw/dir.cpp +++ b/src/msw/dir.cpp @@ -184,7 +184,10 @@ bool wxDirData::Read(wxString *filename) { filespec += _T('\\'); } - filespec += (!m_filespec ? _T("*.*") : m_filespec.c_str()); + if ( !m_filespec ) + filespec += _T("*.*"); + else + filespec += m_filespec; m_finddata = FindFirst(filespec, PTR_TO_FINDDATA);