From 6d342b44a13fd53779603b1f37546db2ac7442b7 Mon Sep 17 00:00:00 2001 From: Wojtek Figat Date: Wed, 15 Jul 2026 11:03:58 +0200 Subject: [PATCH] Fix crash when reading process output on Windows with an empty data --- Source/Engine/Platform/Windows/WindowsPlatform.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Source/Engine/Platform/Windows/WindowsPlatform.cpp b/Source/Engine/Platform/Windows/WindowsPlatform.cpp index 7a08fc485..bc089649b 100644 --- a/Source/Engine/Platform/Windows/WindowsPlatform.cpp +++ b/Source/Engine/Platform/Windows/WindowsPlatform.cpp @@ -1145,6 +1145,8 @@ void ReadPipe(HANDLE pipe, Array& rawData, Array& logData, LogType l { // Skip Windows-style lines rawData.RemoveAllKeepOrder('\r'); + if (rawData.IsEmpty()) + return; // Remove last new line character if (rawData.Last() == '\n')