mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-14 14:02:47 +00:00
Bustage from bug 321359 - check for success before falling through to GetProfileDir
This commit is contained in:
parent
4392a55ac9
commit
aea4b9cf71
@ -324,6 +324,11 @@ nsXREDirProvider::GetFile(const char* aProperty, PRBool* aPersistent,
|
||||
}
|
||||
}
|
||||
|
||||
if (NS_SUCCEEDED(rv) && file) {
|
||||
NS_ADDREF(*aFile = file);
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
if (NS_SUCCEEDED(GetProfileDir(getter_AddRefs(file)))) {
|
||||
if (!strcmp(aProperty, NS_APP_PREFS_50_DIR)) {
|
||||
rv = NS_OK;
|
||||
|
Loading…
x
Reference in New Issue
Block a user