]> git.saurik.com Git - wxWidgets.git/commitdiff
corrected passing const char * to a function taking char * (part of the patch 543892)
authorVadim Zeitlin <vadim@wxwidgets.org>
Mon, 15 Apr 2002 18:47:34 +0000 (18:47 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Mon, 15 Apr 2002 18:47:34 +0000 (18:47 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15148 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/filefn.cpp

index 66009c3b70fa56bd3e399f0a01cac746653983a9..17ab7782d64c14c69ce79142f201337b847a78ce 100644 (file)
@@ -1371,7 +1371,7 @@ static wxString gs_dirPath;
 
 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 )