From ecb7fbea422c4213bfc976793c3e56bbecde5a5a Mon Sep 17 00:00:00 2001 From: Rom Walton Date: Tue, 28 Jan 2014 22:06:04 -0500 Subject: [PATCH] MGR: Use wxDir instead of wxFile to check for the directories existence. --- clientgui/BOINCGUIApp.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }