[RAPPS] winmain.cpp: sizeof instead of _countof

svn path=/branches/GSoC_2017/rapps/; revision=75240
This commit is contained in:
Alexander Shaposhnikov 2017-06-29 19:22:13 +00:00
parent 096c811846
commit f1d019a00a

View file

@ -56,12 +56,12 @@ FillDefaultSettings(PSETTINGS_INFO pSettingsInfo)
pSettingsInfo->bLogEnabled = TRUE;
if (SUCCEEDED(SHGetFolderPathW(NULL, CSIDL_PERSONAL, NULL, SHGFP_TYPE_CURRENT, pSettingsInfo->szDownloadDir)))
{
StringCbCatW(pSettingsInfo->szDownloadDir, _countof(pSettingsInfo->szDownloadDir), L"\\RAPPS Downloads");
StringCbCatW(pSettingsInfo->szDownloadDir, sizeof(pSettingsInfo->szDownloadDir), L"\\RAPPS Downloads");
}
else
{
ExpandEnvironmentStringsW(L"%SystemDrive%\\RAPPS Downloads",
pSettingsInfo->szDownloadDir, _countof(pSettingsInfo->szDownloadDir));
pSettingsInfo->szDownloadDir, sizeof(pSettingsInfo->szDownloadDir));
}
pSettingsInfo->bDelInstaller = FALSE;