mirror of
https://github.com/BluePointLilac/ContextMenuManager.git
synced 2026-01-14 06:04:00 +08:00
排除获取打开方式注册表项不存在的情况
This commit is contained in:
@@ -61,6 +61,7 @@ namespace ContextMenuManager.Controls
|
||||
if(string.IsNullOrEmpty(defalutOpenMode)) continue;
|
||||
using(RegistryKey openModeKey = root.OpenSubKey(defalutOpenMode))
|
||||
{
|
||||
if(openModeKey == null) continue;
|
||||
string value1 = openModeKey.GetValue("FriendlyTypeName")?.ToString();
|
||||
string value2 = openModeKey.GetValue("")?.ToString();
|
||||
value1 = ResourceString.GetDirectString(value1);
|
||||
|
||||
Reference in New Issue
Block a user