[RAPPS] StringCbCatW => StringCchCatW, sizeof() => _countof()

:(

svn path=/branches/GSoC_2017/rapps/; revision=75241
This commit is contained in:
Alexander Shaposhnikov
2017-06-29 19:31:19 +00:00
parent f1d019a00a
commit d555cfe80a
+2 -2
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, sizeof(pSettingsInfo->szDownloadDir), L"\\RAPPS Downloads");
StringCchCatW(pSettingsInfo->szDownloadDir, _countof(pSettingsInfo->szDownloadDir), L"\\RAPPS Downloads");
}
else
{
ExpandEnvironmentStringsW(L"%SystemDrive%\\RAPPS Downloads",
pSettingsInfo->szDownloadDir, sizeof(pSettingsInfo->szDownloadDir));
pSettingsInfo->szDownloadDir, _countof(pSettingsInfo->szDownloadDir));
}
pSettingsInfo->bDelInstaller = FALSE;