From dabbca767f9de4fc4cf68252037de3061592eae2 Mon Sep 17 00:00:00 2001 From: ptitSeb Date: Sun, 9 Jul 2023 12:38:48 +0200 Subject: [ELFLOADER] Added a check if lib version is compatible with what the elf loading it wants (helps Linux games on Steam) --- src/wrapped/wrappedlibdl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/wrapped') diff --git a/src/wrapped/wrappedlibdl.c b/src/wrapped/wrappedlibdl.c index c6787525..47c47c6b 100755 --- a/src/wrapped/wrappedlibdl.c +++ b/src/wrapped/wrappedlibdl.c @@ -177,7 +177,7 @@ void* my_dlopen(x64emu_t* emu, void *filename, int flag) int bindnow = (!box64_musl && (flag&0x2))?1:0; needed_libs_t *tmp = new_neededlib(1); tmp->names[0] = rfilename; - if(AddNeededLib(NULL, is_local, bindnow, tmp, my_context, emu)) { + if(AddNeededLib(NULL, is_local, bindnow, tmp, NULL, my_context, emu)) { printf_dlsym(strchr(rfilename,'/')?LOG_DEBUG:LOG_INFO, "Warning: Cannot dlopen(\"%s\"/%p, %X)\n", rfilename, filename, flag); if(!dl->last_error) dl->last_error = box_malloc(129); -- cgit 1.4.1