Bug 368297 - Fail to find plugins under MOZ_PLUGIN_PATH, patch by Boying Lu <brian.lu@sun.com>, r=me
This commit is contained in:
Родитель
d32867be73
Коммит
7cad56b495
|
@ -542,6 +542,10 @@ class nsPathsDirectoryEnumerator : public nsAppDirectoryEnumerator
|
|||
while (!mNext && *mEndPath)
|
||||
{
|
||||
const char *pathVar = mEndPath;
|
||||
|
||||
// skip PATH_SEPARATORs at the begining of the mEndPath
|
||||
while (*pathVar == PATH_SEPARATOR) pathVar++;
|
||||
|
||||
do { ++mEndPath; } while (*mEndPath && *mEndPath != PATH_SEPARATOR);
|
||||
|
||||
nsCOMPtr<nsILocalFile> localFile;
|
||||
|
|
Загрузка…
Ссылка в новой задаче