summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSadie Powell <sadie@witchery.services>2020-05-19 20:22:36 +0100
committerSadie Powell <sadie@witchery.services>2020-05-19 20:22:36 +0100
commitfdf0e13dd0b9bca161772455e2b29711172451d0 (patch)
tree606aa7e9daf4da52e3b55bbb3ee75c62a9ee515c
parent270e77e05f5559401bf9448590ea81840de52b5e (diff)
Fix CallInit overriding the error from dlopen.
-rw-r--r--src/dynamic.cpp3
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)
{