fixing 10750

git-svn-id: svn://10.0.0.236/trunk@47142 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
dougt%netscape.com
1999-09-13 19:23:44 +00:00
parent 87622c0512
commit d4c4b249ac

View File

@@ -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);