From f1d019a00a2af696d0a77f015aa39370cafcd1ba Mon Sep 17 00:00:00 2001 From: Alexander Shaposhnikov Date: Thu, 29 Jun 2017 19:22:13 +0000 Subject: [PATCH] [RAPPS] winmain.cpp: sizeof instead of _countof svn path=/branches/GSoC_2017/rapps/; revision=75240 --- 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 198b11aa828..a5d8d8db9fe 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, _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;