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:
parent
df16a53ef9
commit
e168b6acfd
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user