mirror of
https://github.com/reactos/reactos.git
synced 2025-02-23 17:05:46 +00:00
[RAPPS] winmain.cpp: sizeof instead of _countof
svn path=/branches/GSoC_2017/rapps/; revision=75240
This commit is contained in:
parent
096c811846
commit
f1d019a00a
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue