From cc044ccc4c68885c2fea7314fd1636e078cd1f81 Mon Sep 17 00:00:00 2001 From: LoveSy Date: Wed, 31 Jan 2024 00:17:04 +0800 Subject: [PATCH] Fix zygisk unload --- native/src/core/zygisk/hook.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/native/src/core/zygisk/hook.cpp b/native/src/core/zygisk/hook.cpp index b70f9a120..151ea93b2 100644 --- a/native/src/core/zygisk/hook.cpp +++ b/native/src/core/zygisk/hook.cpp @@ -204,7 +204,7 @@ DCL_HOOK_FUNC(static int, pthread_attr_destroy, void *target) { // Because both `pthread_attr_destroy` and `dlclose` have the same function signature, // we can use `musttail` to let the compiler reuse our stack frame and thus // `dlclose` will directly return to the caller of `pthread_attr_destroy`. - [[clang::musttail]] return old_dlclose(self_handle); + [[clang::musttail]] return dlclose(self_handle); } }