]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/dir.cpp
Fixed test for button style - styles contain other style bits
[wxWidgets.git] / src / msw / dir.cpp
index 4240cd09302e2573836a17227aff0bdf7595159e..d13cf27c0bc7a8ef00704ca0042fc116655e2d5a 100644 (file)
@@ -34,7 +34,7 @@
 #endif // PCH
 
 #include "wx/dir.h"
 #endif // PCH
 
 #include "wx/dir.h"
-#include "wx/filefn.h"          // for wxPathExists()
+#include "wx/filefn.h"          // for wxDirExists()
 
 #ifdef __WXMSW__
     #include "wx/msw/private.h"
 
 #ifdef __WXMSW__
     #include "wx/msw/private.h"
@@ -287,7 +287,7 @@ bool wxDirData::Read(wxString *filename)
 /* static */
 bool wxDir::Exists(const wxString& dir)
 {
 /* static */
 bool wxDir::Exists(const wxString& dir)
 {
-    return wxPathExists(dir);
+    return wxDirExists(dir);
 }
 
 // ----------------------------------------------------------------------------
 }
 
 // ----------------------------------------------------------------------------