Migrate to VS2017

This commit is contained in:
ge0rdi
2017-12-23 20:25:22 +01:00
parent 2c670949da
commit 58597db5f0
132 changed files with 7085 additions and 11001 deletions

View File

@@ -869,7 +869,7 @@ void CSearchManager::SearchThread( void )
if (*str=='\\')
*str='/';
CString path;
path.Format(L"FILE:%s/",pPath);
path.Format(L"FILE:%s/",(const wchar_t*)pPath);
path.Replace(L"'",L"''");
scope.roots.push_back(path);
LOG_MENU(LOG_SEARCH,L" Scope: %s",path);
@@ -1117,12 +1117,12 @@ void CSearchManager::SearchThread( void )
{
CComString pPath;
if (SUCCEEDED(ShGetKnownFolderPath(FOLDERID_StartMenu,&pPath)))
len+=Sprintf(query+len,_countof(query)-len,L" AND NOT SCOPE='%s'",pPath);
len+=Sprintf(query+len,_countof(query)-len,L" AND NOT SCOPE='%s'",(const wchar_t*)pPath);
}
{
CComString pPath;
if (SUCCEEDED(ShGetKnownFolderPath(FOLDERID_Programs,&pPath)))
len+=Sprintf(query+len,_countof(query)-len,L" AND NOT SCOPE='%s'",pPath);
len+=Sprintf(query+len,_countof(query)-len,L" AND NOT SCOPE='%s'",(const wchar_t*)pPath);
}
}
if (searchRequest.bSearchPrograms || searchRequest.bNoCommonFolders)
@@ -1131,12 +1131,12 @@ void CSearchManager::SearchThread( void )
{
CComString pPath;
if (SUCCEEDED(ShGetKnownFolderPath(FOLDERID_CommonStartMenu,&pPath)))
len+=Sprintf(query+len,_countof(query)-len,L" AND NOT SCOPE='%s'",pPath);
len+=Sprintf(query+len,_countof(query)-len,L" AND NOT SCOPE='%s'",(const wchar_t*)pPath);
}
{
CComString pPath;
if (SUCCEEDED(ShGetKnownFolderPath(FOLDERID_CommonPrograms,&pPath)))
len+=Sprintf(query+len,_countof(query)-len,L" AND NOT SCOPE='%s'",pPath);
len+=Sprintf(query+len,_countof(query)-len,L" AND NOT SCOPE='%s'",(const wchar_t*)pPath);
}
}
}