diff --git a/clientgui/BOINCGUIApp.cpp b/clientgui/BOINCGUIApp.cpp index e5e0e6b415..e5fb4d91a7 100644 --- a/clientgui/BOINCGUIApp.cpp +++ b/clientgui/BOINCGUIApp.cpp @@ -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; }