From fdf0e13dd0b9bca161772455e2b29711172451d0 Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Tue, 19 May 2020 20:22:36 +0100 Subject: Fix CallInit overriding the error from dlopen. --- src/dynamic.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src') 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(MODULE_STR_ABI); if (!abi) { -- cgit v1.2.3