From b2adbc8601205ef4a5cf8066a11dffcebcc6769b Mon Sep 17 00:00:00 2001 From: Dark Byte Date: Mon, 11 Mar 2019 16:58:33 +0100 Subject: [PATCH] fix VirtualToPhysicalCR3 when dealing with big pages --- Cheat Engine/NewKernelHandler.pas | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Cheat Engine/NewKernelHandler.pas b/Cheat Engine/NewKernelHandler.pas index 189394d9..45fabc4e 100644 --- a/Cheat Engine/NewKernelHandler.pas +++ b/Cheat Engine/NewKernelHandler.pas @@ -848,7 +848,7 @@ begin begin if (pagedirentry and (1 shl 7))>0 then //PS==1 begin - PhysicalAddress:=(pagedirentry and MAXPHYADDRMASKPB)+Offset; + PhysicalAddress:=(pagedirentry and MAXPHYADDRMASKPB)+VirtualAddress and $fffff; exit(true); end else