Fix for file replace on restart problem on the Mac.

This commit is contained in:
sgehani%netscape.com 1999-12-13 22:25:31 +00:00
Родитель d5d738913a
Коммит 165cd4d7a2
1 изменённых файлов: 5 добавлений и 0 удалений

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

@ -39,7 +39,12 @@ GetPersistentStringFromSpec(const nsFileSpec& inSpec, char **string)
if (!string) return NS_ERROR_NULL_POINTER;
nsCOMPtr<nsIFileSpec> spec;
#ifdef XP_MAC
nsFileSpec interim = inSpec.GetFSSpec(); /* XXX get rid of mError in nsFileSpec */
nsresult rv = NS_NewFileSpecWithSpec(interim, getter_AddRefs(spec));
#else
nsresult rv = NS_NewFileSpecWithSpec(inSpec, getter_AddRefs(spec));
#endif
if (NS_SUCCEEDED(rv)) {
rv = spec->GetPersistentDescriptorString(string);
}