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
This commit is contained in:
parent
ffc624fe54
commit
e16d731d81
@ -308,7 +308,7 @@ SMCParseResult CGameConfig::ReadSMC_LeavingSection()
|
|||||||
{
|
{
|
||||||
Dl_info info;
|
Dl_info info;
|
||||||
/* GNU only: returns 0 on error, inconsistent! >:[ */
|
/* 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);
|
void *handle = dlopen(info.dli_fname, RTLD_NOW);
|
||||||
if (handle)
|
if (handle)
|
||||||
|
Loading…
Reference in New Issue
Block a user