about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
authorptitSeb <sebastien.chev@gmail.com>2023-01-29 10:18:32 +0100
committerptitSeb <sebastien.chev@gmail.com>2023-01-29 10:18:32 +0100
commit727f8b1d9bec96ed2aa4706c94c8b21c8a39d7b9 (patch)
tree29105d0683f2b25aeab170fc90cbfb9736183050 /src
parent35f2bcf29686b9445627de671289a7df55c9f027 (diff)
downloadbox64-727f8b1d9bec96ed2aa4706c94c8b21c8a39d7b9.tar.gz
box64-727f8b1d9bec96ed2aa4706c94c8b21c8a39d7b9.zip
dlopen with RTLD_NOLOAD flags should inc refcount if lib is present
Diffstat (limited to 'src')
-rwxr-xr-xsrc/wrapped/wrappedlibdl.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/wrapped/wrappedlibdl.c b/src/wrapped/wrappedlibdl.c
index f47f15ed..f1518acd 100755
--- a/src/wrapped/wrappedlibdl.c
+++ b/src/wrapped/wrappedlibdl.c
@@ -113,8 +113,6 @@ void* my_dlopen(x64emu_t* emu, void *filename, int flag)
                         printf_dlsym(LOG_DEBUG, " => not present anymore\n");
                         return NULL;    // don't re-open in RTLD_NOLOAD mode
                     }
-                    printf_dlsym(LOG_DEBUG, "dlopen: Recycling %s/%p count=%ld not inc (dlopened=%ld, elf_index=%d)\n", rfilename, (void*)(i+1), dl->count[i], dl->dlopened[i], GetElfIndex(dl->libs[i]));
-                    return (void*)(i+1);
                 }
                 IncRefCount(dl->libs[i], emu);
                 dl->count[i] = dl->count[i]+1;