https://git.reactos.org/?p=reactos.git;a=commitdiff;h=4d35d59fb9e0a6311f1a6…
commit 4d35d59fb9e0a6311f1a621ca1234b2d583ef98e
Author: Ivan Labutin <linuxrf(a)gmail.com>
AuthorDate: Fri Nov 10 20:19:45 2017 +0300
[NTOS:MM] Quick fix: use SIZE_T instead of ULONG, because ULONG is 32-bit and on
64-bit truncates values
---
ntoskrnl/mm/mminit.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/ntoskrnl/mm/mminit.c b/ntoskrnl/mm/mminit.c
index 5e066c426b..3fff72b771 100644
--- a/ntoskrnl/mm/mminit.c
+++ b/ntoskrnl/mm/mminit.c
@@ -45,7 +45,7 @@ extern NTSTATUS MiRosTrimCache(ULONG Target, ULONG Priority, PULONG
NrFreed);
VOID
INIT_FUNCTION
NTAPI
-MiCreateArm3StaticMemoryArea(PVOID BaseAddress, ULONG Size, BOOLEAN Executable)
+MiCreateArm3StaticMemoryArea(PVOID BaseAddress, SIZE_T Size, BOOLEAN Executable)
{
const ULONG Protection = Executable ? PAGE_EXECUTE_READWRITE : PAGE_READWRITE;
PVOID pBaseAddress = BaseAddress;