From e16d731d81061caa6fd88d70a1fe0a53b48b10ab Mon Sep 17 00:00:00 2001 From: David Anderson Date: Sun, 17 Jun 2007 19:23:43 +0000 Subject: [PATCH] fixed a bug where linux did not read dladdr() return value right for gameconfs --HG-- extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40979 --- core/GameConfigs.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/GameConfigs.cpp b/core/GameConfigs.cpp index c40cc7aa..21eae069 100644 --- a/core/GameConfigs.cpp +++ b/core/GameConfigs.cpp @@ -308,7 +308,7 @@ SMCParseResult CGameConfig::ReadSMC_LeavingSection() { Dl_info info; /* GNU only: returns 0 on error, inconsistent! >:[ */ - if (dladdr(addrInBase, &info) == 0) + if (dladdr(addrInBase, &info) != 0) { void *handle = dlopen(info.dli_fname, RTLD_NOW); if (handle)