From 4e1c766bce04b800b8f4ec0f030eb0325340658a Mon Sep 17 00:00:00 2001 From: Timothy Baldridge Date: Sun, 19 Jul 2020 19:24:30 -0600 Subject: [PATCH] Bad sizing setup on slab allocator --- Wabbajack.Common/Util/DiskSlabAllocator.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Wabbajack.Common/Util/DiskSlabAllocator.cs b/Wabbajack.Common/Util/DiskSlabAllocator.cs index 2f0c133d..30b625b5 100644 --- a/Wabbajack.Common/Util/DiskSlabAllocator.cs +++ b/Wabbajack.Common/Util/DiskSlabAllocator.cs @@ -28,10 +28,11 @@ namespace Wabbajack.Common { var file = new TempFile(); var fileStream = await file.Path.Create(); + size = Math.Max(size, 1024); var self = new DiskSlabAllocator { _file = file, - _size = Math.Max(size, 1024), + _size = size, _fileStream = fileStream, _mmap = MemoryMappedFile.CreateFromFile(fileStream, null, size, MemoryMappedFileAccess.ReadWrite, HandleInheritability.None, false)