From dd07cc89910b4fa933fbd6061e63a0ee965997e3 Mon Sep 17 00:00:00 2001
From: Anonymous Maarten <[EMAIL REDACTED]>
Date: Sun, 15 Sep 2024 02:23:33 +0200
Subject: [PATCH] SDL_Process: WAIT_TIMEOUT means the process has not exited
yet
---
src/process/windows/SDL_windowsprocess.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/process/windows/SDL_windowsprocess.c b/src/process/windows/SDL_windowsprocess.c
index b98455124faf2..6ad61403e7d95 100644
--- a/src/process/windows/SDL_windowsprocess.c
+++ b/src/process/windows/SDL_windowsprocess.c
@@ -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");