summaryrefslogtreecommitdiffstats
path: root/gtk2/kgtk2.c
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-07-28 00:12:42 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-07-28 00:12:42 +0000
commit3f72ed451f4da2c8926467744f44dcab3e1d7af1 (patch)
treeda167a5ece24f78732e8af69f5e2448ca4be80e6 /gtk2/kgtk2.c
parentf195ed3e754866fae96b4b67735e295a78008a38 (diff)
downloadkgtk-qt3-3f72ed451f4da2c8926467744f44dcab3e1d7af1.tar.gz
kgtk-qt3-3f72ed451f4da2c8926467744f44dcab3e1d7af1.zip
Make KGTK::PR_FindFunctionSymbol more robust
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/kgtk-qt3@1243493 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'gtk2/kgtk2.c')
-rw-r--r--gtk2/kgtk2.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/gtk2/kgtk2.c b/gtk2/kgtk2.c
index 0fa934b..1c97f8a 100644
--- a/gtk2/kgtk2.c
+++ b/gtk2/kgtk2.c
@@ -1946,7 +1946,14 @@ void * PR_FindFunctionSymbol(struct PR_LoadLibrary *lib, const char *raw_name)
rv=real_dlsym(RTLD_NEXT, raw_name);
}
- return rv ? rv : realFunction(lib, raw_name);
+#ifdef KGTK_DEBUG_DLSYM
+ printf("KGTK::PR_FindFunctionSymbol found? %d\n", (rv || realFunction) ? 1 : 0);
+#endif
+
+ if ((rv != NULL) || (realFunction != NULL))
+ return rv ? rv : realFunction(lib, raw_name);
+ else
+ return NULL;
}
#ifdef HAVE_DLVSYM