From 8f794c811440b80c5dae1359689e41b1d826a67b Mon Sep 17 00:00:00 2001 From: Valentin Radu Date: Sat, 2 Oct 2021 19:55:45 +0300 Subject: [PATCH] GUI reloads settings when restoring defaults instead of exiting --- ExplorerPatcher/GUI.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/ExplorerPatcher/GUI.c b/ExplorerPatcher/GUI.c index 86932b5..6527f41 100644 --- a/ExplorerPatcher/GUI.c +++ b/ExplorerPatcher/GUI.c @@ -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); }