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); }