fixing 10750
git-svn-id: svn://10.0.0.236/trunk@47142 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -322,7 +322,15 @@ nsInstall::AddDirectory(const nsString& aRegName,
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
for (PRInt32 i=0; i < paths->Count(); i++)
|
||||
PRInt32 count = paths->Count();
|
||||
|
||||
if (count == 0)
|
||||
{
|
||||
*aReturn = SaveError( nsInstall::FILE_DOES_NOT_EXIST );
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
for (PRInt32 i=0; i < count; i++)
|
||||
{
|
||||
nsString *thisPath = (nsString *)paths->ElementAt(i);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user