mirror of
https://github.com/reactos/reactos.git
synced 2025-02-22 08:25:03 +00:00
[BROWSEUI] Remove useless RegenerateUserEnvironment() call.
[SHELL32] Call RegenerateUserEnvironment() in WM_SETTINGCHANGE handler **ONLY** when lParam points to the L"Environment" string. CORE-15147
This commit is contained in:
parent
a8e7defb01
commit
d967b5aa25
2 changed files with 6 additions and 5 deletions
|
@ -3558,9 +3558,6 @@ LRESULT CShellBrowser::RelayMsgToShellView(UINT uMsg, WPARAM wParam, LPARAM lPar
|
|||
|
||||
LRESULT CShellBrowser::OnSettingChange(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandled)
|
||||
{
|
||||
LPVOID lpEnvironment;
|
||||
RegenerateUserEnvironment(&lpEnvironment, TRUE);
|
||||
|
||||
SHPropagateMessage(m_hWnd, uMsg, wParam, lParam, TRUE);
|
||||
return 0;
|
||||
}
|
||||
|
|
|
@ -390,8 +390,12 @@ LRESULT CDesktopBrowser::OnSize(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL &b
|
|||
|
||||
LRESULT CDesktopBrowser::OnSettingChange(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandled)
|
||||
{
|
||||
LPVOID lpEnvironment;
|
||||
RegenerateUserEnvironment(&lpEnvironment, TRUE);
|
||||
if (uMsg == WM_SETTINGCHANGE /* == WM_WININICHANGE */ &&
|
||||
lstrcmpiW((LPCWSTR)lParam, L"Environment") == 0)
|
||||
{
|
||||
LPVOID lpEnvironment;
|
||||
RegenerateUserEnvironment(&lpEnvironment, TRUE);
|
||||
}
|
||||
|
||||
if (m_hWndShellView)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue