X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/7acf6a921e69c3382706c2cfc35e826d08004231..33cc6200a8c797c72536ca319148c0f712cf658a:/src/generic/helpext.cpp diff --git a/src/generic/helpext.cpp b/src/generic/helpext.cpp index 49dae623f0..840ae94fa0 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(wxDirExists(newfile)) + if(wxPathExists(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(wxDirExists(newfile)) + if(wxPathExists(newfile)) file = newfile; } } #endif - if(! wxDirExists(file)) + if(! wxPathExists(file)) return false; mapFile << file << WXEXTHELP_SEPARATOR << WXEXTHELP_MAPFILE;