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
v3.5.13-sru
tpearson 14 years ago
parent f195ed3e75
commit 3f72ed451f

@ -1946,7 +1946,14 @@ void * PR_FindFunctionSymbol(struct PR_LoadLibrary *lib, const char *raw_name)
rv=real_dlsym(RTLD_NEXT, raw_name); rv=real_dlsym(RTLD_NEXT, 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); return rv ? rv : realFunction(lib, raw_name);
else
return NULL;
} }
#ifdef HAVE_DLVSYM #ifdef HAVE_DLVSYM

Loading…
Cancel
Save