mirror of
https://github.com/reactos/reactos.git
synced 2025-08-07 06:02:56 +00:00
[SHELL32] CFolderOptions Reset can call DefView directly if there is no browser (#7806)
CORE-20029
This commit is contained in:
parent
cfde03ec9b
commit
090d563488
4 changed files with 52 additions and 14 deletions
|
@ -4240,13 +4240,13 @@ HRESULT WINAPI CDefView::Exec(const GUID *pguidCmdGroup, DWORD nCmdID, DWORD nCm
|
|||
SHDeleteKey(HKEY_CURRENT_USER, L"Software\\Microsoft\\Windows\\ShellNoRoam\\Bags");
|
||||
if (SUCCEEDED(GetDefaultViewStream(STGM_WRITE, &pStream)))
|
||||
SaveViewState(pStream);
|
||||
break;
|
||||
return S_OK;
|
||||
case DVCMDID_RESET_DEFAULTFOLDER_SETTINGS:
|
||||
wsprintfW(SubKey, L"%s\\%s", REGSTR_PATH_EXPLORER, L"Streams\\Default");
|
||||
PathCombineW(SubKey, REGSTR_PATH_EXPLORER, L"Streams\\Default");
|
||||
SHDeleteKey(HKEY_CURRENT_USER, SubKey);
|
||||
SHDeleteKey(HKEY_CURRENT_USER, L"Software\\Microsoft\\Windows\\ShellNoRoam\\Bags");
|
||||
m_FolderSettings.fFlags |= FWF_NOBROWSERVIEWSTATE; // Don't let this folder save itself
|
||||
break;
|
||||
return S_OK;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue