Updating fix for #103612 from v1.14 after comments from pinkerton & sfraser. r=pinkerton,sr=sfraser

This commit is contained in:
sdagley%netscape.com 2001-10-08 20:20:57 +00:00
Родитель c95a08b1c0
Коммит 5186f6db18
2 изменённых файлов: 4 добавлений и 8 удалений

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

@ -482,10 +482,8 @@ NS_IMETHODIMP nsInternetConfigService::GetDownloadFolder(FSSpec *fsspec)
err = ::ICFindPrefHandle(inst, kICDownloadFolder, &attr, prefH);
if (err == noErr)
{ // Use FSMakeFSSpec to verify the saved FSSpec is still valid
err = ::FSMakeFSSpec((*(ICFileSpecHandle)prefH)->fss.vRefNum,
(*(ICFileSpecHandle)prefH)->fss.parID,
(*(ICFileSpecHandle)prefH)->fss.name,
fsspec);
FSSpec tempSpec = (*(ICFileSpecHandle)prefH)->fss;
err = ::FSMakeFSSpec(tempSpec.vRefNum, tempSpec.parID, tempSpec.name, fsspec);
if (err == noErr)
rv = NS_OK;
}

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

@ -482,10 +482,8 @@ NS_IMETHODIMP nsInternetConfigService::GetDownloadFolder(FSSpec *fsspec)
err = ::ICFindPrefHandle(inst, kICDownloadFolder, &attr, prefH);
if (err == noErr)
{ // Use FSMakeFSSpec to verify the saved FSSpec is still valid
err = ::FSMakeFSSpec((*(ICFileSpecHandle)prefH)->fss.vRefNum,
(*(ICFileSpecHandle)prefH)->fss.parID,
(*(ICFileSpecHandle)prefH)->fss.name,
fsspec);
FSSpec tempSpec = (*(ICFileSpecHandle)prefH)->fss;
err = ::FSMakeFSSpec(tempSpec.vRefNum, tempSpec.parID, tempSpec.name, fsspec);
if (err == noErr)
rv = NS_OK;
}