From 622baec9529bb261cd250c2c2b9768b75ee0530f Mon Sep 17 00:00:00 2001 From: ptitSeb Date: Mon, 7 Mar 2022 14:14:07 +0100 Subject: Fix some special case on mmap64 wrapping --- src/librarian/librarian.c | 1 + src/librarian/library.c | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) (limited to 'src/librarian') diff --git a/src/librarian/librarian.c b/src/librarian/librarian.c index adcf647e..02a02ec6 100755 --- a/src/librarian/librarian.c +++ b/src/librarian/librarian.c @@ -342,6 +342,7 @@ int AddNeededLib_init(lib_t* maplib, needed_libs_t* neededlibs, library_t* depli EXPORTDYN int AddNeededLib(lib_t* maplib, needed_libs_t* neededlibs, library_t* deplib, int local, int bindnow, const char** paths, int npath, box64context_t* box64, x64emu_t* emu) { + box64_mapclean = 0; if(!neededlibs) { neededlibs = alloca(sizeof(needed_libs_t)); memset(neededlibs, 0, sizeof(needed_libs_t)); diff --git a/src/librarian/library.c b/src/librarian/library.c index 4ed54096..85e4dfc3 100755 --- a/src/librarian/library.c +++ b/src/librarian/library.c @@ -198,7 +198,6 @@ static void initNativeLib(library_t *lib, box64context_t* context) { return; // non blocker... } printf_log(LOG_INFO, "Using native(wrapped) %s\n", lib->name); - box64_mapclean = 0; lib->priv.w.box64lib = context->box64lib; lib->context = context; lib->fini = wrappedlibs[i].fini; -- cgit 1.4.1