зеркало из https://github.com/mozilla/pjs.git
Fixed bad JS_Request stuff in openPrefFile.
This commit is contained in:
Родитель
d57d41bc51
Коммит
5981a95a48
|
@ -301,13 +301,13 @@ static nsresult openPrefFile(nsIFile* aFile, PRBool aIsErrorFatal, PRBool aVerif
|
||||||
nsCOMPtr<nsIFileSpec> fileSpec;
|
nsCOMPtr<nsIFileSpec> fileSpec;
|
||||||
nsresult rv;
|
nsresult rv;
|
||||||
|
|
||||||
JS_BeginRequest(gMochaContext);
|
|
||||||
rv = nsIFileToFileSpec(aFile, getter_AddRefs(fileSpec));
|
rv = nsIFileToFileSpec(aFile, getter_AddRefs(fileSpec));
|
||||||
JS_EndRequest(gMochaContext);
|
if (NS_SUCCEEDED(rv)) {
|
||||||
if (NS_FAILED(rv))
|
JS_BeginRequest(gMochaContext);
|
||||||
return rv;
|
rv = openPrefFileSpec(fileSpec, aIsErrorFatal, aVerifyHash, aIsGlobalContext, aSkipFirstLine);
|
||||||
|
JS_EndRequest(gMochaContext);
|
||||||
return openPrefFileSpec(fileSpec, aIsErrorFatal, aVerifyHash, aIsGlobalContext, aSkipFirstLine);
|
}
|
||||||
|
return rv;
|
||||||
}
|
}
|
||||||
|
|
||||||
static nsresult openPrefFileSpec(nsIFileSpec* aFilespec, PRBool aIsErrorFatal, PRBool aVerifyHash,
|
static nsresult openPrefFileSpec(nsIFileSpec* aFilespec, PRBool aIsErrorFatal, PRBool aVerifyHash,
|
||||||
|
|
Загрузка…
Ссылка в новой задаче