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:
@@ -1336,7 +1336,10 @@ wxString wxFindFirstFile(const wxChar *spec, int flags)
|
|||||||
wxString result;
|
wxString result;
|
||||||
gs_dir->GetFirst(&result, wxFileNameFromPath(spec), dirFlags);
|
gs_dir->GetFirst(&result, wxFileNameFromPath(spec), dirFlags);
|
||||||
if ( result.IsEmpty() )
|
if ( result.IsEmpty() )
|
||||||
|
{
|
||||||
wxDELETE(gs_dir);
|
wxDELETE(gs_dir);
|
||||||
|
return result;
|
||||||
|
}
|
||||||
|
|
||||||
return gs_dirPath + result;
|
return gs_dirPath + result;
|
||||||
}
|
}
|
||||||
@@ -1349,7 +1352,10 @@ wxString wxFindNextFile()
|
|||||||
gs_dir->GetNext(&result);
|
gs_dir->GetNext(&result);
|
||||||
|
|
||||||
if ( result.IsEmpty() )
|
if ( result.IsEmpty() )
|
||||||
|
{
|
||||||
wxDELETE(gs_dir);
|
wxDELETE(gs_dir);
|
||||||
|
return result;
|
||||||
|
}
|
||||||
|
|
||||||
return gs_dirPath + result;
|
return gs_dirPath + result;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user