[RAPPS] winmain.cpp: sizeof instead of _countof
authorAlexander Shaposhnikov <sanchaez@reactos.org>
Thu, 29 Jun 2017 19:22:13 +0000 (19:22 +0000)
committerAlexander Shaposhnikov <sanchaez@reactos.org>
Thu, 29 Jun 2017 19:22:13 +0000 (19:22 +0000)
svn path=/branches/GSoC_2017/rapps/; revision=75240

reactos/base/applications/rapps/winmain.cpp

index 198b11a..a5d8d8d 100644 (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;