Skip to content

Commit

Permalink
Update src/AppInstallerCommonCore/PathVariable.cpp
Browse files Browse the repository at this point in the history
Co-authored-by: yao-msft <[email protected]>
  • Loading branch information
Trenly and yao-msft authored Oct 11, 2023
1 parent 7ea62da commit 7508891
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/AppInstallerCommonCore/PathVariable.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,8 @@ namespace AppInstaller::Registry::Environment

std::wstring pathName = std::wstring{ s_PathName };
m_key.SetValue(pathName, ConvertToUTF16(value), REG_EXPAND_SZ);
SendNotifyMessage(HWND_BROADCAST, WM_SETTINGCHANGE, 0, (LPARAM)TEXT("Environment"));
SendNotifyMessageW(HWND_BROADCAST, WM_SETTINGCHANGE, 0, (LPARAM)TEXT("Environment"));

}

bool RefreshPathVariableForCurrentProcess()
Expand Down

0 comments on commit 7508891

Please sign in to comment.