From f5e766ab7b3c08d9ba20ba74752f075b747ad743 Mon Sep 17 00:00:00 2001 From: Sandu Liviu Catalin Date: Sun, 21 Mar 2021 10:50:18 +0200 Subject: [PATCH] Fix stream not clearing the proper values. --- module/Misc/Official.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/module/Misc/Official.cpp b/module/Misc/Official.cpp index 6d7c13c6..34e167f4 100644 --- a/module/Misc/Official.cpp +++ b/module/Misc/Official.cpp @@ -2217,13 +2217,13 @@ struct LgStream { static constexpr size_t MAX_SIZE = 4096; // -------------------------------------------------------------------------------------------- static void ClearOutput() { - m_InputStreamSize = m_InputStreamPosition = 0; - m_InputStreamError = false; - } - static void ClearInput() { m_OutputStreamPosition = m_OutputStreamEnd = 0; m_OutputStreamError = false; } + static void ClearInput() { + m_InputStreamSize = m_InputStreamPosition = 0; + m_InputStreamError = false; + } // -------------------------------------------------------------------------------------------- static void StartWrite() { ClearOutput(); } static void SetWritePosition(size_t position) {