From b2a1af10291b705c6ea0cf806a91d99da05fb9ca Mon Sep 17 00:00:00 2001 From: ptitSeb Date: Tue, 15 Jun 2021 17:12:35 +0200 Subject: Fixed a crash with some glibc wrapped /not-yet wrapped libs --- src/librarian/library.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/librarian/library.c b/src/librarian/library.c index 1b858447..0e9f48cc 100755 --- a/src/librarian/library.c +++ b/src/librarian/library.c @@ -151,7 +151,7 @@ static void initNativeLib(library_t *lib, box64context_t* context) { lib->getlocal = NativeLib_GetLocal; lib->type = 0; // Call librarian to load all dependant elf - if(AddNeededLib(context->maplib, &lib->needed, lib, 0, (const char**)lib->priv.w.neededlibs, lib->priv.w.needed, context, NULL)) { // probably all native, not emulated, so that's fine + if(AddNeededLib(context->maplib, &lib->needed, lib, 0, (const char**)lib->priv.w.neededlibs, lib->priv.w.needed, context, thread_get_emu())) { printf_log(LOG_NONE, "Error: loading a needed libs in elf %s\n", lib->name); return; } -- cgit 1.4.1