mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-09-06 11:28:15 +00:00
SDL_Process: WAIT_TIMEOUT means the process has not exited yet
This commit is contained in:

committed by
Sam Lantinga

parent
1f3fd65c4c
commit
dd07cc8991
@@ -442,7 +442,7 @@ bool SDL_SYS_WaitProcess(SDL_Process *process, SDL_bool block, int *exitcode)
|
|||||||
|
|
||||||
result = WaitForSingleObject(process->internal->process_information.hProcess, block ? INFINITE : 0);
|
result = WaitForSingleObject(process->internal->process_information.hProcess, block ? INFINITE : 0);
|
||||||
|
|
||||||
if (result == WAIT_OBJECT_0 || result == WAIT_TIMEOUT) {
|
if (result == WAIT_OBJECT_0) {
|
||||||
DWORD rc;
|
DWORD rc;
|
||||||
if (!GetExitCodeProcess(process->internal->process_information.hProcess, &rc)) {
|
if (!GetExitCodeProcess(process->internal->process_information.hProcess, &rc)) {
|
||||||
return WIN_SetError("GetExitCodeProcess");
|
return WIN_SetError("GetExitCodeProcess");
|
||||||
|
Reference in New Issue
Block a user