Fix "terminate process" on Windows
CloseHandle() does not terminate the process. TerminateProcess() does.
This commit is contained in:
parent
6fe65d9f5c
commit
ad41bacb48
1 changed files with 1 additions and 1 deletions
|
@ -28,7 +28,7 @@ HANDLE cmd_execute(const char *path, const char *const argv[]) {
|
|||
}
|
||||
|
||||
SDL_bool cmd_terminate(HANDLE handle) {
|
||||
return CloseHandle(handle);
|
||||
return TerminateProcess(handle, 1) && CloseHandle(handle);
|
||||
}
|
||||
|
||||
SDL_bool cmd_simple_wait(HANDLE handle, DWORD *exit_code) {
|
||||
|
|
Loading…
Reference in a new issue