Backed out changeset 4318f781ab87 to investigate Ts changes, b=506812 CLOSED TREE

This commit is contained in:
Josh Aas 2009-07-31 16:53:51 -04:00
parent a51ef667d4
commit 60c7c7e310

View File

@ -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))