Bug 979007 - When attempting to read and write 'supported' associated registry value in nsWinMetroUtils, use the right access mask. r=tabraldes

This commit is contained in:
Jim Mathies 2014-03-03 17:25:18 -06:00
parent 137a5a0322
commit e06043252f

View File

@ -378,7 +378,7 @@ nsWinMetroUtils::GetSupported(bool *aSupported)
if (NS_SUCCEEDED(rv)) {
rv = regKey->Open(nsIWindowsRegKey::ROOT_KEY_CURRENT_USER,
metroRegValuePath,
nsIWindowsRegKey::ACCESS_WRITE);
nsIWindowsRegKey::ACCESS_ALL);
if (NS_SUCCEEDED(rv)) {
rv = regKey->ReadIntValue(metroRegValueName, &value);
if (NS_SUCCEEDED(rv)) {