Archived
Mitigated Explorer restarts not saving settings
This commit is contained in:
@@ -513,6 +513,8 @@ static BOOL GUI_Build(HDC hDC, HWND hwnd, POINT pt)
|
||||
{
|
||||
if (FindWindowW(L"Shell_TrayWnd", NULL))
|
||||
{
|
||||
BeginExplorerRestart();
|
||||
Sleep(100);
|
||||
//ZZRestartExplorer(0, 0, 0, 0);
|
||||
WCHAR wszPath[MAX_PATH];
|
||||
ZeroMemory(wszPath, MAX_PATH * sizeof(WCHAR));
|
||||
|
||||
@@ -357,6 +357,9 @@ int WINAPI wWinMain(
|
||||
{
|
||||
bOk = TRUE;
|
||||
|
||||
BeginExplorerRestart();
|
||||
Sleep(100);
|
||||
|
||||
GetSystemDirectoryW(wszPath, MAX_PATH);
|
||||
wcscat_s(wszPath, MAX_PATH, L"\\taskkill.exe");
|
||||
ShellExecuteW(
|
||||
|
||||
Reference in New Issue
Block a user