Bugzilla: 53014

git-svn-id: svn://10.0.0.236/branches/NSPRPUB_CLIENT_BRANCH@82360 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
larryh%netscape.com
2000-11-06 23:33:07 +00:00
parent 81f1906695
commit 02a3070f4d

View File

@@ -829,11 +829,17 @@ pr_LoadLibraryByPathname(const char *name, PRIntn flags)
cookie = 0;
while (get_next_image_info(0, &cookie, &info) == B_OK) {
char *endOfName = info.name + strlen(info.name) - strlen(name);
if (endOfName < info.name)
continue;
if (strcmp(name, endOfName) == 0) {
char *endOfSystemName = strrchr(info.name, '/');
char *endOfPassedName = strrchr(name, '/');
if( 0 == endOfSystemName )
endOfSystemName=info.name;
else
endOfSystemName++;
if( 0 == endOfPassedName )
endOfPassedName=name;
else
endOfPassedName++;
if (strcmp(endOfSystemName, endOfPassedName) == 0) {
/* this is the actual component - remember it */
h = info.id;
break;