mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 19:03:00 +00:00
[RAPPS] Fixed default "Download" folder default. Now defaults to "RAPPS Downloads" folder in user Documents or installation drive.
svn path=/branches/GSoC_2017/rapps/; revision=75239
This commit is contained in:
parent
82f11f1d0b
commit
096c811846
1 changed files with 10 additions and 3 deletions
|
@ -54,9 +54,16 @@ FillDefaultSettings(PSETTINGS_INFO pSettingsInfo)
|
||||||
pSettingsInfo->bSaveWndPos = TRUE;
|
pSettingsInfo->bSaveWndPos = TRUE;
|
||||||
pSettingsInfo->bUpdateAtStart = FALSE;
|
pSettingsInfo->bUpdateAtStart = FALSE;
|
||||||
pSettingsInfo->bLogEnabled = TRUE;
|
pSettingsInfo->bLogEnabled = TRUE;
|
||||||
StringCbCopyW(pSettingsInfo->szDownloadDir,
|
if (SUCCEEDED(SHGetFolderPathW(NULL, CSIDL_PERSONAL, NULL, SHGFP_TYPE_CURRENT, pSettingsInfo->szDownloadDir)))
|
||||||
sizeof(pSettingsInfo->szDownloadDir),
|
{
|
||||||
L"C:\\Downloads");
|
StringCbCatW(pSettingsInfo->szDownloadDir, _countof(pSettingsInfo->szDownloadDir), L"\\RAPPS Downloads");
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
ExpandEnvironmentStringsW(L"%SystemDrive%\\RAPPS Downloads",
|
||||||
|
pSettingsInfo->szDownloadDir, _countof(pSettingsInfo->szDownloadDir));
|
||||||
|
}
|
||||||
|
|
||||||
pSettingsInfo->bDelInstaller = FALSE;
|
pSettingsInfo->bDelInstaller = FALSE;
|
||||||
|
|
||||||
pSettingsInfo->Maximized = FALSE;
|
pSettingsInfo->Maximized = FALSE;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue