From f9a23a2882f96dc8ccbf3f386ce05f7ee4ca303d Mon Sep 17 00:00:00 2001 From: ThePedroo Date: Fri, 13 Jun 2025 17:19:55 -0300 Subject: [PATCH] fix: checking if `find_containing_library` exists and error'ing This commit fixes the typo where ReZygisk would check if a function exists in linker, and if it did, not proceed instead of proceeding. closes #184 --- loader/src/injector/solist.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/loader/src/injector/solist.c b/loader/src/injector/solist.c index e2f657e..eaf618d 100644 --- a/loader/src/injector/solist.c +++ b/loader/src/injector/solist.c @@ -121,7 +121,7 @@ static bool solist_init() { LOGD("%p is soinfo_free", (void *)soinfo_free); find_containing_library = (SoInfo *(*)(const void *))getSymbAddress(linker, "__dl__Z23find_containing_libraryPKv"); - if (find_containing_library != NULL) { + if (find_containing_library == NULL) { LOGE("Failed to find find_containing_library __dl__Z23find_containing_libraryPKv"); ElfImg_destroy(linker);