Skip to content

Commit

Permalink
SDL_Process: WAIT_TIMEOUT means the process has not exited yet
Browse files Browse the repository at this point in the history
  • Loading branch information
madebr committed Sep 15, 2024
1 parent 93bf534 commit 72eb5dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/process/windows/SDL_windowsprocess.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

if (result == WAIT_OBJECT_0 || result == WAIT_TIMEOUT) {
if (result == WAIT_OBJECT_0) {
DWORD rc;
if (!GetExitCodeProcess(process->internal->process_information.hProcess, &rc)) {
return WIN_SetError("GetExitCodeProcess");
Expand Down

0 comments on commit 72eb5dc

Please sign in to comment.