]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/filefn.cpp
added wxBuildOptions and check that they are the same for the program and the library...
[wxWidgets.git] / src / common / filefn.cpp
index 66009c3b70fa56bd3e399f0a01cac746653983a9..17ab7782d64c14c69ce79142f201337b847a78ce 100644 (file)
@@ -1371,7 +1371,7 @@ static wxString gs_dirPath;
 
 wxString wxFindFirstFile(const wxChar *spec, int flags)
 {
-    gs_dirPath = wxPathOnly(spec);
+    wxSplitPath(spec, &gs_dirPath, NULL, NULL);
     if ( gs_dirPath.IsEmpty() )
         gs_dirPath = wxT(".");
     if ( gs_dirPath.Last() != wxFILE_SEP_PATH )