Fixed broken stream check

This commit is contained in:
Armin Novak 2022-04-05 16:53:35 +02:00 committed by akallabeth
parent d49f744526
commit 9d5e7b0d38

View File

@ -163,12 +163,6 @@ void Stream_EnsureValidity(wStream* s)
cur = (size_t)(s->pointer - s->buffer);
STREAM_ASSERT(cur <= s->capacity);
STREAM_ASSERT(s->length <= s->capacity);
/* Length is only valid after a call to Stream_SealLength */
if (s->length > 0)
{
STREAM_ASSERT(cur <= s->length);
}
}
void Stream_Free(wStream* s, BOOL bFreeBuffer)