diff options
author | Sadie Powell <sadie@witchery.services> | 2020-05-19 20:22:36 +0100 |
---|---|---|
committer | Sadie Powell <sadie@witchery.services> | 2020-05-19 20:22:36 +0100 |
commit | fdf0e13dd0b9bca161772455e2b29711172451d0 (patch) | |
tree | 606aa7e9daf4da52e3b55bbb3ee75c62a9ee515c /src | |
parent | 270e77e05f5559401bf9448590ea81840de52b5e (diff) |
Fix CallInit overriding the error from dlopen.
Diffstat (limited to 'src')
-rw-r--r-- | src/dynamic.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/dynamic.cpp b/src/dynamic.cpp index 609766c13..3df91e41f 100644 --- a/src/dynamic.cpp +++ b/src/dynamic.cpp @@ -69,6 +69,9 @@ DLLManager::~DLLManager() Module* DLLManager::CallInit() { + if (!lib) + return NULL; + const unsigned long* abi = GetSymbol<const unsigned long>(MODULE_STR_ABI); if (!abi) { |