mirror of
https://github.com/LSPosed/LSPlt.git
synced 2025-05-06 21:48:48 +08:00
Fix duplicate hook check
This commit is contained in:
parent
5f8cf799c3
commit
dea1626479
@ -146,7 +146,7 @@ public:
|
||||
}
|
||||
auto *the_addr = reinterpret_cast<uintptr_t *>(addr);
|
||||
auto the_backup = *the_addr;
|
||||
if (*the_addr != addr) {
|
||||
if (*the_addr != callback) {
|
||||
*the_addr = callback;
|
||||
if (backup) *backup = the_backup;
|
||||
__builtin___clear_cache(PageStart(addr), PageEnd(addr));
|
||||
|
Loading…
x
Reference in New Issue
Block a user