From d555cfe80a712ce5d0e988f5709fa42735dacc22 Mon Sep 17 00:00:00 2001 From: Alexander Shaposhnikov Date: Thu, 29 Jun 2017 19:31:19 +0000 Subject: [PATCH] [RAPPS] StringCbCatW => StringCchCatW, sizeof() => _countof() :( svn path=/branches/GSoC_2017/rapps/; revision=75241 --- reactos/base/applications/rapps/winmain.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/reactos/base/applications/rapps/winmain.cpp b/reactos/base/applications/rapps/winmain.cpp index a5d8d8db9fe..f065d8c8523 100644 --- a/reactos/base/applications/rapps/winmain.cpp +++ b/reactos/base/applications/rapps/winmain.cpp @@ -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;