mirror of
https://github.com/ptitSeb/box64.git
synced 2025-05-08 07:59:18 +08:00
[ELFLOADER] Fixed an issue were fail to load a library might endup unloading used libraries
This commit is contained in:
parent
7334bb46c6
commit
4add55aa45
@ -354,12 +354,6 @@ int AddNeededLib(lib_t* maplib, int local, int bindnow, int deepbind, needed_lib
|
||||
printf_log(LOG_INFO, "Error initializing needed lib %s\n", needed->names[i]);
|
||||
ret = 1;
|
||||
}
|
||||
// error while loadind lib, unload...
|
||||
if(ret) {
|
||||
int n = needed->size;
|
||||
for (int i=0; i<n; ++i)
|
||||
DecRefCount(&needed->libs[n-i-1], emu);
|
||||
}
|
||||
// all done
|
||||
if(BOX64ENV(allow_missing_libs)) return 0;
|
||||
return ret;
|
||||
|
Loading…
x
Reference in New Issue
Block a user