mirror of
https://github.com/LSPosed/LSPlt.git
synced 2025-05-06 21:48:48 +08:00
Fix perm when invalidate cache
This commit is contained in:
parent
5e1c3b1a9e
commit
229adbe159
@ -164,9 +164,11 @@ public:
|
||||
info.hooks.clear();
|
||||
continue;
|
||||
}
|
||||
mprotect(reinterpret_cast<void *>(info.start), len, PROT_WRITE);
|
||||
for (auto &[addr, backup] : info.hooks) {
|
||||
*reinterpret_cast<uintptr_t *>(addr) = backup;
|
||||
}
|
||||
mprotect(reinterpret_cast<void *>(info.start), len, info.perm);
|
||||
info.hooks.clear();
|
||||
info.backup = 0;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user