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
This commit is contained in:
ThePedroo
2025-06-13 17:19:55 -03:00
parent d111a2dfc5
commit f9a23a2882

View File

@@ -121,7 +121,7 @@ static bool solist_init() {
LOGD("%p is soinfo_free", (void *)soinfo_free); LOGD("%p is soinfo_free", (void *)soinfo_free);
find_containing_library = (SoInfo *(*)(const void *))getSymbAddress(linker, "__dl__Z23find_containing_libraryPKv"); 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"); LOGE("Failed to find find_containing_library __dl__Z23find_containing_libraryPKv");
ElfImg_destroy(linker); ElfImg_destroy(linker);