зеркало из https://github.com/mozilla/pjs.git
Updating fix for #103612 from v1.14 after comments from pinkerton & sfraser. r=pinkerton,sr=sfraser
This commit is contained in:
Родитель
c95a08b1c0
Коммит
5186f6db18
|
@ -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;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче