зеркало из https://github.com/mozilla/pjs.git
JRE auto-detection needs to be version specific, bug 108957 r=curt sr=darin
This commit is contained in:
Родитель
369d7d281b
Коммит
db0955a93f
|
@ -156,7 +156,10 @@ nsPluginDirServiceProvider::GetFile(const char *prop, PRBool *persistant, nsIFil
|
|||
// if the user installed an older version AFTER a newer one
|
||||
// This assumes the last version installed is the one the user wants to use
|
||||
// We can also tweak this for checking for a minimum version on szKey
|
||||
if (::CompareFileTime(&modTime,&curVer) >= 0 && atof(curKey) >= 1.3)
|
||||
// Don't tweek. Stay between compatible versions in 1.3.x. JRE 1.4 is an XPCOM
|
||||
// component and needs to be installed explicitly!
|
||||
if (::CompareFileTime(&modTime,&curVer) >= 0 &&
|
||||
(atof(curKey) >= 1.3) && (atof(curKey) < 1.4))
|
||||
{
|
||||
PL_strcpy(newestPath,path);
|
||||
curVer = modTime;
|
||||
|
|
Загрузка…
Ссылка в новой задаче