]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/filefn.cpp
assert is raised when using the thread sample (which works) so the test is
[wxWidgets.git] / src / common / filefn.cpp
index d05fb1ecc3ba4d921f569b33b6af48646e4b525d..f6d5b9d69ff5def30a23ed614504705b8efaaca2 100644 (file)
@@ -1406,7 +1406,7 @@ wxString wxFindFirstFile(const wxChar *spec, int flags)
     wxSplitPath(spec, &gs_dirPath, NULL, NULL);
     if ( gs_dirPath.IsEmpty() )
         gs_dirPath = wxT(".");
-    if ( gs_dirPath.Last() != wxFILE_SEP_PATH )
+    if ( !wxEndsWithPathSeparator(gs_dirPath ) )
         gs_dirPath << wxFILE_SEP_PATH;
 
     if (gs_dir)