MGR: Use wxDir instead of wxFile to check for the directories existence.

This commit is contained in:
Rom Walton 2014-01-28 22:06:04 -05:00
parent 41a8b26117
commit ecb7fbea42
1 changed files with 1 additions and 1 deletions

View File

@ -786,7 +786,7 @@ void CBOINCGUIApp::DetectDataDirectory() {
} else {
if (SUCCEEDED(SHGetFolderPath(NULL, CSIDL_COMMON_APPDATA|CSIDL_FLAG_CREATE, NULL, SHGFP_TYPE_CURRENT, szPath))) {
_tcsncat(szPath, _T("\\boinc"), ((sizeof(szPath)/sizeof(TCHAR)) - _tcslen(szPath)));
if (wxFile::Exists(szPath)) {
if (wxDir::Exists(szPath)) {
// Store the root directory for later use.
m_strBOINCMGRDataDirectory = szPath;
}