mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-24 00:24:14 +00:00
Correctness fix for Bug 447934 - Default browser check doesn't return false if the registry key doesn't exist. r=jmathies
This commit is contained in:
parent
3845aa9785
commit
ae635cdffe
@ -312,7 +312,7 @@ nsWindowsShellService::IsDefaultBrowser(PRBool aStartupCheck,
|
||||
rv = OpenKeyForReading(HKEY_CLASSES_ROOT, key, &theKey);
|
||||
if (NS_FAILED(rv)) {
|
||||
*aIsDefaultBrowser = PR_FALSE;
|
||||
break;
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
DWORD len = sizeof currValue;
|
||||
|
Loading…
Reference in New Issue
Block a user