зеркало из 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);
|
err = ::ICFindPrefHandle(inst, kICDownloadFolder, &attr, prefH);
|
||||||
if (err == noErr)
|
if (err == noErr)
|
||||||
{ // Use FSMakeFSSpec to verify the saved FSSpec is still valid
|
{ // Use FSMakeFSSpec to verify the saved FSSpec is still valid
|
||||||
err = ::FSMakeFSSpec((*(ICFileSpecHandle)prefH)->fss.vRefNum,
|
FSSpec tempSpec = (*(ICFileSpecHandle)prefH)->fss;
|
||||||
(*(ICFileSpecHandle)prefH)->fss.parID,
|
err = ::FSMakeFSSpec(tempSpec.vRefNum, tempSpec.parID, tempSpec.name, fsspec);
|
||||||
(*(ICFileSpecHandle)prefH)->fss.name,
|
|
||||||
fsspec);
|
|
||||||
if (err == noErr)
|
if (err == noErr)
|
||||||
rv = NS_OK;
|
rv = NS_OK;
|
||||||
}
|
}
|
||||||
|
|
|
@ -482,10 +482,8 @@ NS_IMETHODIMP nsInternetConfigService::GetDownloadFolder(FSSpec *fsspec)
|
||||||
err = ::ICFindPrefHandle(inst, kICDownloadFolder, &attr, prefH);
|
err = ::ICFindPrefHandle(inst, kICDownloadFolder, &attr, prefH);
|
||||||
if (err == noErr)
|
if (err == noErr)
|
||||||
{ // Use FSMakeFSSpec to verify the saved FSSpec is still valid
|
{ // Use FSMakeFSSpec to verify the saved FSSpec is still valid
|
||||||
err = ::FSMakeFSSpec((*(ICFileSpecHandle)prefH)->fss.vRefNum,
|
FSSpec tempSpec = (*(ICFileSpecHandle)prefH)->fss;
|
||||||
(*(ICFileSpecHandle)prefH)->fss.parID,
|
err = ::FSMakeFSSpec(tempSpec.vRefNum, tempSpec.parID, tempSpec.name, fsspec);
|
||||||
(*(ICFileSpecHandle)prefH)->fss.name,
|
|
||||||
fsspec);
|
|
||||||
if (err == noErr)
|
if (err == noErr)
|
||||||
rv = NS_OK;
|
rv = NS_OK;
|
||||||
}
|
}
|
||||||
|
|
Загрузка…
Ссылка в новой задаче