From 5d60b3af0497fea3be4f3a818227fe57000ac8f8 Mon Sep 17 00:00:00 2001 From: Relintai Date: Sat, 5 Aug 2023 20:18:32 +0200 Subject: [PATCH] Ported from Godot4: Fix Windows execute exit code. - bruvzg https://github.com/godotengine/godot/commit/94355249c360be694bdb692f357dc017d742aee7 --- platform/windows/os_windows.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/platform/windows/os_windows.cpp b/platform/windows/os_windows.cpp index 85ffe6566..2445383a2 100644 --- a/platform/windows/os_windows.cpp +++ b/platform/windows/os_windows.cpp @@ -2921,9 +2921,9 @@ Error OS_Windows::execute(const String &p_path, const List &p_arguments, } CloseHandle(pipe[0]); // Close pipe read handle. - } else { - WaitForSingleObject(pi.pi.hProcess, INFINITE); } + + WaitForSingleObject(pi.pi.hProcess, INFINITE); if (r_exitcode) { DWORD ret2;