mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-11 12:25:53 +00:00
209985 patch by bugzilla@pippo.demon.co.uk r=cavin sr=dmose MAPI does not check HKEY_CURRENT_USER for default mail client
This commit is contained in:
parent
bdd9896fe3
commit
2edb25ce92
@ -230,8 +230,14 @@ PRBool nsMapiRegistryUtils::IsDefaultMailClient()
|
||||
{
|
||||
if (!isSmartDll() && !isMozDll())
|
||||
return PR_FALSE;
|
||||
//first try to get the users default mail client
|
||||
nsCAutoString name;
|
||||
GetRegistryKey(HKEY_LOCAL_MACHINE, "Software\\Clients\\Mail", "", name);
|
||||
GetRegistryKey(HKEY_CURRENT_USER, "Software\\Clients\\Mail", "", name);
|
||||
//if that fails then get the machine's default client
|
||||
if(name.IsEmpty()){
|
||||
GetRegistryKey(HKEY_LOCAL_MACHINE, "Software\\Clients\\Mail", "", name);
|
||||
}
|
||||
|
||||
if (!name.IsEmpty()) {
|
||||
nsCAutoString keyName("Software\\Clients\\Mail\\");
|
||||
keyName += name.get();
|
||||
|
Loading…
Reference in New Issue
Block a user