Author: ashaposhnikov
Date: Thu Jun 29 19:31:19 2017
New Revision: 75241
URL:
http://svn.reactos.org/svn/reactos?rev=75241&view=rev
Log:
[RAPPS] StringCbCatW => StringCchCatW, sizeof() => _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:31:19 2017
@@ -56,12 +56,12 @@
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;