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:
Robert Strong 2008-08-04 23:48:06 -07:00
parent 3845aa9785
commit ae635cdffe

View File

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