Reset stream length to capacity in StreamPool_Take

This commit is contained in:
Armin Novak 2018-10-02 14:22:27 +02:00
parent 6f6581cdd6
commit 3416d1bdee

View File

@ -175,6 +175,7 @@ wStream* StreamPool_Take(wStreamPool* pool, size_t size)
else
{
Stream_SetPosition(s, 0);
Stream_SetLength(s, Stream_Capacity(s));
StreamPool_ShiftAvailable(pool, foundIndex, -1);
}