зеркало из https://github.com/mozilla/pjs.git
Backed out changeset e154f70dc6ea
This commit is contained in:
Родитель
e34531f0f4
Коммит
d3f20f3705
|
@ -578,17 +578,9 @@ static nsresult GetLocationFromDirectoryService(const char* prop,
|
|||
if (!directoryService)
|
||||
return NS_ERROR_FAILURE;
|
||||
|
||||
nsCOMPtr<nsIFile> directory;
|
||||
nsresult rv = directoryService->Get(prop, NS_GET_IID(nsIFile),
|
||||
getter_AddRefs(directory));
|
||||
if (NS_FAILED(rv))
|
||||
return rv;
|
||||
|
||||
rv = directory->Normalize();
|
||||
NS_ENSURE_SUCCESS(rv, rv);
|
||||
|
||||
directory.forget(aDirectory);
|
||||
return NS_OK;
|
||||
return directoryService->Get(prop,
|
||||
NS_GET_IID(nsIFile),
|
||||
(void**)aDirectory);
|
||||
}
|
||||
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче