X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/8372d79dc2884414f5d0868894ee78178207b0df..90d0ab3443af62c1055cb7151be753aca89a20ee:/src/common/filefn.cpp 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 )