Browse Source

GUI reloads settings when restoring defaults instead of exiting

pull/51/head
Valentin Radu 4 years ago
parent
commit
8f794c8114
  1. 5
      ExplorerPatcher/GUI.c

5
ExplorerPatcher/GUI.c

@ -333,10 +333,7 @@ static BOOL GUI_Build(HDC hDC, HWND hwnd, POINT pt) @@ -333,10 +333,7 @@ static BOOL GUI_Build(HDC hDC, HWND hwnd, POINT pt)
WaitForSingleObject(ShExecInfo.hProcess, INFINITE);
DWORD dwExitCode = 0;
GetExitCodeProcess(ShExecInfo.hProcess, &dwExitCode);
if (!dwExitCode)
{
PostMessage(hwnd, WM_CLOSE, 0, 0);
}
InvalidateRect(hwnd, NULL, FALSE);
CloseHandle(ShExecInfo.hProcess);
DeleteFileW(wszPath);
}

Loading…
Cancel
Save