Fix crash when reading process output on Windows with an empty data

This commit is contained in:
2026-07-15 11:03:58 +02:00
parent 10c2c5c59b
commit 6d342b44a1
@@ -1145,6 +1145,8 @@ void ReadPipe(HANDLE pipe, Array<char>& rawData, Array<Char>& logData, LogType l
{
// Skip Windows-style lines
rawData.RemoveAllKeepOrder('\r');
if (rawData.IsEmpty())
return;
// Remove last new line character
if (rawData.Last() == '\n')