about summary refs log tree commit diff stats
path: root/src/librarian
diff options
context:
space:
mode:
authorptitSeb <sebastien.chev@gmail.com>2022-03-07 14:14:07 +0100
committerptitSeb <sebastien.chev@gmail.com>2022-03-07 14:14:07 +0100
commit622baec9529bb261cd250c2c2b9768b75ee0530f (patch)
tree45c313608b2e02fbe570a92b4113a855de25be27 /src/librarian
parenta326c821580ed2cd6665312a6d78696c5f6afcca (diff)
downloadbox64-622baec9529bb261cd250c2c2b9768b75ee0530f.tar.gz
box64-622baec9529bb261cd250c2c2b9768b75ee0530f.zip
Fix some special case on mmap64 wrapping
Diffstat (limited to 'src/librarian')
-rwxr-xr-xsrc/librarian/librarian.c1
-rwxr-xr-xsrc/librarian/library.c1
2 files changed, 1 insertions, 1 deletions
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;