From 29c90bc943e2862176be62cc68dd112545446977 Mon Sep 17 00:00:00 2001 From: Maschell Date: Mon, 1 Jun 2020 16:36:00 +0200 Subject: [PATCH] relocator: Fix KiIsEffectiveRangeValid to return a boolean. --- relocator/src/hooks_patcher_static.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/relocator/src/hooks_patcher_static.cpp b/relocator/src/hooks_patcher_static.cpp index c51de7a..09351a2 100644 --- a/relocator/src/hooks_patcher_static.cpp +++ b/relocator/src/hooks_patcher_static.cpp @@ -99,7 +99,7 @@ DECL(uint32_t, KiIsEffectiveRangeValid, uint32_t addressSpace, uint32_t virtualA uint32_t result = real_KiIsEffectiveRangeValid(addressSpace, virtualAddress, size); if (result == 0) { if(MemoryMappingEffectiveToPhysicalPTR != 0){ - return ((uint32_t (*)(uint32_t)) ((uint32_t *) MemoryMappingEffectiveToPhysicalPTR))(virtualAddress); + return ((uint32_t (*)(uint32_t)) ((uint32_t *) MemoryMappingEffectiveToPhysicalPTR))(virtualAddress) > 0; } } return result;