git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15148
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
wxString wxFindFirstFile(const wxChar *spec, int flags)
{
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 )
if ( gs_dirPath.IsEmpty() )
gs_dirPath = wxT(".");
if ( gs_dirPath.Last() != wxFILE_SEP_PATH )