Reset stream length to capacity in StreamPool_Take
This commit is contained in:
parent
6f6581cdd6
commit
3416d1bdee
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user