Fix for bug 49533. The test case was incorrect but we were not returning a meaningful error. Also the install.log was being filled with junk. r=ssu

This commit is contained in:
dbragg%netscape.com 2000-09-05 18:17:52 +00:00
Родитель 387924873d
Коммит 52a1c0b522
1 изменённых файлов: 5 добавлений и 2 удалений

Просмотреть файл

@ -285,7 +285,7 @@ char* nsInstallFileOpItem::toString()
char* dstPath;
// STRING USE WARNING: perhaps |result| should be an |nsCAutoString| to avoid all this double converting
*resultCString = nsnull;
switch(mCommand)
{
case NS_FOP_FILE_COPY:
@ -632,7 +632,10 @@ nsInstallFileOpItem::NativeFileOpFileRenamePrepare()
mSrc->GetParent(&target);
nsAutoCString tempTargetString(*mStrTarget);
target->Append(tempTargetString);
nsresult rv = target->Append(tempTargetString);
//90% of the failures during Append will be because the target wasn't in string form
// which it must be.
if (NS_FAILED(rv)) return nsInstall::INVALID_ARGUMENTS;
target->Exists(&flagExists);
if(flagExists)