X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/8372d79dc2884414f5d0868894ee78178207b0df..090a6d7af9c551cf34c3d50f3a438c6b42e51527:/src/common/filefn.cpp?ds=sidebyside diff --git a/src/common/filefn.cpp b/src/common/filefn.cpp index 66009c3b70..17ab7782d6 100644 --- a/src/common/filefn.cpp +++ b/src/common/filefn.cpp @@ -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 )