From 4eb2b9bcff8721ff8c7b1c07fbd124173ee0b6a9 Mon Sep 17 00:00:00 2001 From: Stephen Miller Date: Thu, 8 Aug 2024 15:01:54 -0500 Subject: [PATCH] Fix OrbisKernelBatchMapEntry struct UE4 games and GTA V cause the BatchMap offset to overflow on Windows. Changing the type fixes this, and doesn't seem to cause any regressions on Windows or Linux. --- src/core/libraries/kernel/memory_management.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/libraries/kernel/memory_management.h b/src/core/libraries/kernel/memory_management.h index 25a4a9f09..6735ead71 100644 --- a/src/core/libraries/kernel/memory_management.h +++ b/src/core/libraries/kernel/memory_management.h @@ -63,7 +63,7 @@ struct OrbisVirtualQueryInfo { struct OrbisKernelBatchMapEntry { void* start; - off_t offset; + size_t offset; size_t length; char protection; char type;