mirror of
https://github.com/valinet/ExplorerPatcher.git
synced 2024-11-30 18:24:36 +01:00
GUI reloads settings when restoring defaults instead of exiting
This commit is contained in:
parent
a01f110341
commit
8f794c8114
@ -333,10 +333,7 @@ static BOOL GUI_Build(HDC hDC, HWND hwnd, POINT pt)
|
|||||||
WaitForSingleObject(ShExecInfo.hProcess, INFINITE);
|
WaitForSingleObject(ShExecInfo.hProcess, INFINITE);
|
||||||
DWORD dwExitCode = 0;
|
DWORD dwExitCode = 0;
|
||||||
GetExitCodeProcess(ShExecInfo.hProcess, &dwExitCode);
|
GetExitCodeProcess(ShExecInfo.hProcess, &dwExitCode);
|
||||||
if (!dwExitCode)
|
InvalidateRect(hwnd, NULL, FALSE);
|
||||||
{
|
|
||||||
PostMessage(hwnd, WM_CLOSE, 0, 0);
|
|
||||||
}
|
|
||||||
CloseHandle(ShExecInfo.hProcess);
|
CloseHandle(ShExecInfo.hProcess);
|
||||||
DeleteFileW(wszPath);
|
DeleteFileW(wszPath);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user