Fix bug when allocating smaller than requested rewind buffer.

This commit is contained in:
J.D. Purcell 2017-04-04 23:29:43 -04:00
parent a47e69507f
commit 9bb4cc9917
1 changed files with 1 additions and 1 deletions

View File

@ -34,7 +34,7 @@ namespace BizHawk.Client.Common
}
else
{
_mAllocatedBuffer = _mBufferManage(null, ref capacity, true);
_mAllocatedBuffer = _mBufferManage(null, ref _mCapacity, true);
_mStream = new MemoryStream(_mAllocatedBuffer);
}
}