зеркало из https://github.com/mozilla/pjs.git
Fixing hpux bustage. r=dbaron.
This commit is contained in:
Родитель
5076fd41dd
Коммит
aeecfdfb3a
|
@ -745,10 +745,12 @@ nsLocalFile::CopyToNative(nsIFile *newParent, const nsACString &newName)
|
|||
#endif
|
||||
|
||||
// actually create the file.
|
||||
nsCOMPtr<nsLocalFile> newFile = new nsLocalFile();
|
||||
nsLocalFile *newFile = new nsLocalFile();
|
||||
if (!newFile)
|
||||
return NS_ERROR_OUT_OF_MEMORY;
|
||||
|
||||
nsCOMPtr<nsILocalFile> fileRef(newFile); // release on exit
|
||||
|
||||
rv = newFile->InitWithNativePath(newPathName);
|
||||
if (NS_FAILED(rv))
|
||||
return rv;
|
||||
|
|
Загрузка…
Ссылка в новой задаче