corrected passing const char * to a function taking char * (part of the patch 543892)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15148 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -1371,7 +1371,7 @@ static wxString gs_dirPath;
|
|||||||
|
|
||||||
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() )
|
if ( gs_dirPath.IsEmpty() )
|
||||||
gs_dirPath = wxT(".");
|
gs_dirPath = wxT(".");
|
||||||
if ( gs_dirPath.Last() != wxFILE_SEP_PATH )
|
if ( gs_dirPath.Last() != wxFILE_SEP_PATH )
|
||||||
|
Reference in New Issue
Block a user