зеркало из https://github.com/mozilla/pjs.git
Fix for file replace on restart problem on the Mac.
This commit is contained in:
Родитель
d5d738913a
Коммит
165cd4d7a2
|
@ -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);
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче