mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Get rid of unnecessary conversion from CFURLRef to FSRef. b=506812 r=vlad
This commit is contained in:
parent
b2ef6c1d62
commit
87a641a295
@ -1439,13 +1439,7 @@ XRE_GetBinaryPath(const char* argv0, nsILocalFile* *aResult)
|
|||||||
if (!bundleURL)
|
if (!bundleURL)
|
||||||
return NS_ERROR_FAILURE;
|
return NS_ERROR_FAILURE;
|
||||||
|
|
||||||
FSRef fileRef;
|
rv = lfm->InitWithCFURL(bundleURL);
|
||||||
if (!CFURLGetFSRef(bundleURL, &fileRef)) {
|
|
||||||
CFRelease(bundleURL);
|
|
||||||
return NS_ERROR_FAILURE;
|
|
||||||
}
|
|
||||||
|
|
||||||
rv = lfm->InitWithFSRef(&fileRef);
|
|
||||||
CFRelease(bundleURL);
|
CFRelease(bundleURL);
|
||||||
|
|
||||||
if (NS_FAILED(rv))
|
if (NS_FAILED(rv))
|
||||||
|
Loading…
Reference in New Issue
Block a user