From 70018a774bf7411ef7550aa4fb3eb153d17dcfd6 Mon Sep 17 00:00:00 2001 From: rajdakin Date: Fri, 9 Apr 2021 17:52:59 +0200 Subject: Fixed the libraries free ordering --- src/wrapped/wrappedlibdl.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/wrapped') diff --git a/src/wrapped/wrappedlibdl.c b/src/wrapped/wrappedlibdl.c index 9074cd96..91732a61 100755 --- a/src/wrapped/wrappedlibdl.c +++ b/src/wrapped/wrappedlibdl.c @@ -97,7 +97,7 @@ void* my_dlopen(x64emu_t* emu, void *filename, int flag) } dlopened = (GetLibInternal(rfilename)==NULL); // Then open the lib - if(AddNeededLib(NULL, NULL, is_local, rfilename, emu->context, emu)) { + if(AddNeededLib(NULL, NULL, NULL, is_local, rfilename, emu->context, emu)) { printf_log(LOG_INFO, "Warning: Cannot dlopen(\"%s\"/%p, %X)\n", rfilename, filename, flag); if(!dl->last_error) dl->last_error = malloc(129); @@ -412,4 +412,4 @@ int my_dlinfo(x64emu_t* emu, void* handle, int request, void* info) snprintf(dl->last_error, 129, "unsupported call to dlinfo request:%d\n", request); } return -1; -} \ No newline at end of file +} -- cgit 1.4.1