From fbb856702f9c2e497236f09992328a68a05c815d Mon Sep 17 00:00:00 2001 From: ghorsington Date: Sun, 19 Jun 2022 21:38:30 +0300 Subject: [PATCH] PageAllocator: fix allocation unit to correct value --- BepInEx.IL2CPP/Hook/Allocator/PageAllocator.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/BepInEx.IL2CPP/Hook/Allocator/PageAllocator.cs b/BepInEx.IL2CPP/Hook/Allocator/PageAllocator.cs index 42bcb95..1fdb066 100644 --- a/BepInEx.IL2CPP/Hook/Allocator/PageAllocator.cs +++ b/BepInEx.IL2CPP/Hook/Allocator/PageAllocator.cs @@ -26,7 +26,7 @@ internal abstract class PageAllocator /// /// Allocation granularity on Windows (but can be reused in other implementations). /// - protected const int ALLOCATION_UNIT = 0x100000; + protected const int ALLOCATION_UNIT = 0x10000; protected const int PAGES_PER_UNIT = ALLOCATION_UNIT / PAGE_SIZE;