From 2e5e3d1d2fd59a31af6e13df44c0eb33c46dda51 Mon Sep 17 00:00:00 2001 From: Maschell Date: Mon, 31 Jan 2022 16:12:51 +0100 Subject: [PATCH] Fix dynamic_function detection --- source/function_patcher.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/function_patcher.cpp b/source/function_patcher.cpp index f3f8703..e09d92b 100644 --- a/source/function_patcher.cpp +++ b/source/function_patcher.cpp @@ -238,7 +238,7 @@ void FunctionPatcherRestoreFunctions(function_replacement_data_t *replacements, } bool isDynamicFunction(uint32_t physicalAddress) { - if ((physicalAddress & 0x80000000) == 0x80000000) { + if ((physicalAddress & 0x80000000) == 0x80000000 && (physicalAddress & 0xFF000000) != 0xFF000000) { return true; } return false;