mirror of
https://github.com/greenshot/greenshot
synced 2025-07-30 19:50:11 -07:00
A bit of refactoring to be able to find some issue...
This commit is contained in:
parent
bef29df3db
commit
42cd533862
308 changed files with 2705 additions and 2454 deletions
|
@ -34,12 +34,12 @@ namespace GreenshotPlugin.Core {
|
|||
public static string GetMapiClient() {
|
||||
using (RegistryKey key = Registry.CurrentUser.OpenSubKey(MapiClientKey, false)) {
|
||||
if (key != null) {
|
||||
return (string)key.GetValue("");
|
||||
return (string)key.GetValue(string.Empty);
|
||||
}
|
||||
}
|
||||
using (RegistryKey key = Registry.LocalMachine.OpenSubKey(MapiClientKey, false))
|
||||
{
|
||||
return (string) key?.GetValue("");
|
||||
return (string) key?.GetValue(string.Empty);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -53,7 +53,7 @@ namespace GreenshotPlugin.Core {
|
|||
using (RegistryKey key = Registry.LocalMachine.OpenSubKey(OutlookPathKey, false)) {
|
||||
if (key != null) {
|
||||
// "" is the default key, which should point to the outlook location
|
||||
return (string)key.GetValue("");
|
||||
return (string)key.GetValue(string.Empty);
|
||||
}
|
||||
}
|
||||
return null;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue