mirror of
https://github.com/LSPosed/LSPlt.git
synced 2025-05-07 05:56:34 +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_addr = reinterpret_cast<uintptr_t *>(addr);
|
||||||
auto the_backup = *the_addr;
|
auto the_backup = *the_addr;
|
||||||
if (*the_addr != addr) {
|
if (*the_addr != callback) {
|
||||||
*the_addr = callback;
|
*the_addr = callback;
|
||||||
if (backup) *backup = the_backup;
|
if (backup) *backup = the_backup;
|
||||||
__builtin___clear_cache(PageStart(addr), PageEnd(addr));
|
__builtin___clear_cache(PageStart(addr), PageEnd(addr));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user