]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/dir.cpp
compilation fix: wxcrt.h, not crt.h
[wxWidgets.git] / src / msw / dir.cpp
index 42b0128b412bccbd2e2ec2c337ed8da64e01853e..bfca51b3225427bc91c2c21c8cc9d7583c53d243 100644 (file)
@@ -184,7 +184,10 @@ bool wxDirData::Read(wxString *filename)
         {
             filespec += _T('\\');
         }
         {
             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);
 
 
         m_finddata = FindFirst(filespec, PTR_TO_FINDDATA);