Browse Source

Mitigated Explorer restarts not saving settings

pull/400/head
Valentin Radu 4 years ago
parent
commit
2d9158c384
  1. 2
      ExplorerPatcher/GUI.c
  2. 3
      ep_setup/ep_setup.c

2
ExplorerPatcher/GUI.c

@ -513,6 +513,8 @@ static BOOL GUI_Build(HDC hDC, HWND hwnd, POINT pt)
{ {
if (FindWindowW(L"Shell_TrayWnd", NULL)) if (FindWindowW(L"Shell_TrayWnd", NULL))
{ {
BeginExplorerRestart();
Sleep(100);
//ZZRestartExplorer(0, 0, 0, 0); //ZZRestartExplorer(0, 0, 0, 0);
WCHAR wszPath[MAX_PATH]; WCHAR wszPath[MAX_PATH];
ZeroMemory(wszPath, MAX_PATH * sizeof(WCHAR)); ZeroMemory(wszPath, MAX_PATH * sizeof(WCHAR));

3
ep_setup/ep_setup.c

@ -357,6 +357,9 @@ int WINAPI wWinMain(
{ {
bOk = TRUE; bOk = TRUE;
BeginExplorerRestart();
Sleep(100);
GetSystemDirectoryW(wszPath, MAX_PATH); GetSystemDirectoryW(wszPath, MAX_PATH);
wcscat_s(wszPath, MAX_PATH, L"\\taskkill.exe"); wcscat_s(wszPath, MAX_PATH, L"\\taskkill.exe");
ShellExecuteW( ShellExecuteW(

Loading…
Cancel
Save