1
0
mirror of https://github.com/VCMP-SqMod/SqMod.git synced 2024-11-08 00:37:15 +01:00

Fix stream not clearing the proper values.

This commit is contained in:
Sandu Liviu Catalin 2021-03-21 10:50:18 +02:00
parent 5f90d55fc7
commit f5e766ab7b

View File

@ -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) {