fixes to wxFindFirstFile

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@13042 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Václav Slavík 2001-12-16 20:38:01 +00:00
parent df16a53ef9
commit e168b6acfd

View File

@ -1336,7 +1336,10 @@ wxString wxFindFirstFile(const wxChar *spec, int flags)
wxString result;
gs_dir->GetFirst(&result, wxFileNameFromPath(spec), dirFlags);
if ( result.IsEmpty() )
{
wxDELETE(gs_dir);
return result;
}
return gs_dirPath + result;
}
@ -1349,7 +1352,10 @@ wxString wxFindNextFile()
gs_dir->GetNext(&result);
if ( result.IsEmpty() )
{
wxDELETE(gs_dir);
return result;
}
return gs_dirPath + result;
}