Skip to content

Commit

Permalink
Fix dynamic_function detection
Browse files Browse the repository at this point in the history
  • Loading branch information
Maschell committed Jan 31, 2022
1 parent fc3eea1 commit 2e5e3d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/function_patcher.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 2e5e3d1

Please sign in to comment.