mirror of
https://github.com/Genymobile/scrcpy.git
synced 2025-12-19 14:34:19 +01:00
Fix "terminate process" on Windows
CloseHandle() does not terminate the process. TerminateProcess() does.
This commit is contained in:
@@ -28,7 +28,7 @@ HANDLE cmd_execute(const char *path, const char *const argv[]) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
SDL_bool cmd_terminate(HANDLE handle) {
|
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) {
|
SDL_bool cmd_simple_wait(HANDLE handle, DWORD *exit_code) {
|
||||||
|
|||||||
Reference in New Issue
Block a user