Fix for 27755 on behalf of stanley.ho@eng.Sun.COM, r=av, a=rickg

This commit is contained in:
av%netscape.com 2000-03-03 00:53:45 +00:00
parent 8e122d212d
commit 52a1708dcd
2 changed files with 10 additions and 2 deletions

View File

@ -2039,6 +2039,10 @@ NS_IMETHODIMP nsPluginHostImpl::GetPluginFactory(const char *aMimeType, nsIPlugi
#ifdef XP_WIN // actually load a dll on Windows
#ifdef NS_DEBUG
printf("For %s found plugin %s\n", aMimeType, pluginTag->mFileName);
#endif
nsFileSpec file(pluginTag->mFileName);
nsPluginFile pluginFile(file);
@ -2186,7 +2190,7 @@ static PRBool areTheSameFileNames(char * name1, char * name2)
if(PL_strlen(filename1) != PL_strlen(filename2))
return PR_FALSE;
return (nsnull == PL_strncmp(filename1, filename2, PL_strlen(filename1)));
return (nsnull == PL_strncasecmp(filename1, filename2, PL_strlen(filename1)));
}
NS_IMETHODIMP nsPluginHostImpl::LoadPlugins()

View File

@ -2039,6 +2039,10 @@ NS_IMETHODIMP nsPluginHostImpl::GetPluginFactory(const char *aMimeType, nsIPlugi
#ifdef XP_WIN // actually load a dll on Windows
#ifdef NS_DEBUG
printf("For %s found plugin %s\n", aMimeType, pluginTag->mFileName);
#endif
nsFileSpec file(pluginTag->mFileName);
nsPluginFile pluginFile(file);
@ -2186,7 +2190,7 @@ static PRBool areTheSameFileNames(char * name1, char * name2)
if(PL_strlen(filename1) != PL_strlen(filename2))
return PR_FALSE;
return (nsnull == PL_strncmp(filename1, filename2, PL_strlen(filename1)));
return (nsnull == PL_strncasecmp(filename1, filename2, PL_strlen(filename1)));
}
NS_IMETHODIMP nsPluginHostImpl::LoadPlugins()