Author: ashaposhnikov
Date: Thu Jun 29 19:22:13 2017
New Revision: 75240
URL:
http://svn.reactos.org/svn/reactos?rev=75240&view=rev
Log:
[RAPPS] winmain.cpp: sizeof instead of _countof
Modified:
branches/GSoC_2017/rapps/reactos/base/applications/rapps/winmain.cpp
Modified: branches/GSoC_2017/rapps/reactos/base/applications/rapps/winmain.cpp
URL:
http://svn.reactos.org/svn/reactos/branches/GSoC_2017/rapps/reactos/base/ap…
==============================================================================
--- branches/GSoC_2017/rapps/reactos/base/applications/rapps/winmain.cpp [iso-8859-1]
(original)
+++ branches/GSoC_2017/rapps/reactos/base/applications/rapps/winmain.cpp [iso-8859-1] Thu
Jun 29 19:22:13 2017
@@ -56,12 +56,12 @@
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;