X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/27b2dd53f629a78266c51d1b0b5db918401dcd4f..600ffb3230fbf26234e55952c33c802cada62321:/src/generic/helpext.cpp?ds=sidebyside diff --git a/src/generic/helpext.cpp b/src/generic/helpext.cpp index 840ae94fa0..49dae623f0 100644 --- a/src/generic/helpext.cpp +++ b/src/generic/helpext.cpp @@ -259,7 +259,7 @@ bool wxExtHelpController::LoadFile(const wxString& ifile) { wxString newfile; newfile << WXEXTHELP_SEPARATOR << wxGetLocale()->GetName(); - if(wxPathExists(newfile)) + if(wxDirExists(newfile)) file = newfile; else { @@ -267,13 +267,13 @@ bool wxExtHelpController::LoadFile(const wxString& ifile) const wxChar *cptr = wxGetLocale()->GetName().c_str(); while(*cptr && *cptr != wxT('_')) newfile << *(cptr++); - if(wxPathExists(newfile)) + if(wxDirExists(newfile)) file = newfile; } } #endif - if(! wxPathExists(file)) + if(! wxDirExists(file)) return false; mapFile << file << WXEXTHELP_SEPARATOR << WXEXTHELP_MAPFILE;