From 9bb4cc99175885cb9f5c91212effe18660846f9d Mon Sep 17 00:00:00 2001 From: "J.D. Purcell" Date: Tue, 4 Apr 2017 23:29:43 -0400 Subject: [PATCH] Fix bug when allocating smaller than requested rewind buffer. --- BizHawk.Client.Common/rewind/StreamBlobDatabase.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/BizHawk.Client.Common/rewind/StreamBlobDatabase.cs b/BizHawk.Client.Common/rewind/StreamBlobDatabase.cs index 4697275a2d..6ed4d57415 100644 --- a/BizHawk.Client.Common/rewind/StreamBlobDatabase.cs +++ b/BizHawk.Client.Common/rewind/StreamBlobDatabase.cs @@ -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); } }