зеркало из https://github.com/mozilla/gecko-dev.git
Backed out changeset 4318f781ab87 to investigate Ts changes, b=506812 CLOSED TREE
This commit is contained in:
Родитель
a51ef667d4
Коммит
60c7c7e310
|
@ -1439,7 +1439,13 @@ XRE_GetBinaryPath(const char* argv0, nsILocalFile* *aResult)
|
|||
if (!bundleURL)
|
||||
return NS_ERROR_FAILURE;
|
||||
|
||||
rv = lfm->InitWithCFURL(bundleURL);
|
||||
FSRef fileRef;
|
||||
if (!CFURLGetFSRef(bundleURL, &fileRef)) {
|
||||
CFRelease(bundleURL);
|
||||
return NS_ERROR_FAILURE;
|
||||
}
|
||||
|
||||
rv = lfm->InitWithFSRef(&fileRef);
|
||||
CFRelease(bundleURL);
|
||||
|
||||
if (NS_FAILED(rv))
|
||||
|
|
Загрузка…
Ссылка в новой задаче