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')