]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/filefn.cpp
Stupid timeout bug fixed
[wxWidgets.git] / src / common / filefn.cpp
index f4a1e78bcacff53f22efcafa80b9ac590610a41d..e5b536b0a6d4c1e0c428350f25dfa0fbbb65770c 100644 (file)
@@ -122,9 +122,7 @@ extern wxChar *wxBuffer;
 #include "fspcompa.h"
 #endif
 
 #include "fspcompa.h"
 #endif
 
-#if !USE_SHARED_LIBRARIES
     IMPLEMENT_DYNAMIC_CLASS(wxPathList, wxStringList)
     IMPLEMENT_DYNAMIC_CLASS(wxPathList, wxStringList)
-#endif
 
 // ----------------------------------------------------------------------------
 // private globals
 
 // ----------------------------------------------------------------------------
 // private globals
@@ -1304,7 +1302,9 @@ wxString wxFindNextFile()
           nextDir != NULL;
           nextDir = readdir(gs_dirStream) )
     {
           nextDir != NULL;
           nextDir = readdir(gs_dirStream) )
     {
-        if (wxMatchWild(name, nextDir->d_name))
+        if (wxMatchWild(name, nextDir->d_name, FALSE) &&   // RR: added FALSE to find hidden files
+           strcmp(nextDir->d_name, ".") && 
+           strcmp(nextDir->d_name, "..") )
         {
             result.Empty();
             if ( !path.IsEmpty() )
         {
             result.Empty();
             if ( !path.IsEmpty() )