diff options
author | Marius Ungureanu <marius.ungureanu@xamarin.com> | 2014-12-16 17:54:38 +0300 |
---|---|---|
committer | Marius Ungureanu <marius.ungureanu@xamarin.com> | 2014-12-16 17:57:49 +0300 |
commit | 91ac8fbe94888260417da6f30c8b26017a1b1eca (patch) | |
tree | 798fd79ada1aca9649024a4da61ff47b1c2496bd /main/src/addins/WindowsPlatform | |
parent | f410337b543322b9e9d9ab491a7e918f4b3ffbc6 (diff) |
Fixup to 7ee916d6eb8851d2d810659c40aa1ec668dd3b69
Diffstat (limited to 'main/src/addins/WindowsPlatform')
-rw-r--r-- | main/src/addins/WindowsPlatform/WindowsPlatform/WindowsPlatform.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/main/src/addins/WindowsPlatform/WindowsPlatform/WindowsPlatform.cs b/main/src/addins/WindowsPlatform/WindowsPlatform/WindowsPlatform.cs index 1541520385..3210d87bce 100644 --- a/main/src/addins/WindowsPlatform/WindowsPlatform/WindowsPlatform.cs +++ b/main/src/addins/WindowsPlatform/WindowsPlatform/WindowsPlatform.cs @@ -350,7 +350,7 @@ namespace MonoDevelop.Platform apps = key.GetSubKeyNames (); else if (type == AppOpenWithRegistryType.FromMRUList) { string list = (string)key.GetValue ("MRUList"); - apps = list.Select (c => c.ToString ()).ToArray (); + apps = list.Select (c => (string)key.GetValue (c.ToString ())).ToArray (); } foreach (string appName in apps) { @@ -381,7 +381,7 @@ namespace MonoDevelop.Platform // Query extension OpenWithList. using (RegistryKey key = Registry.ClassesRoot.OpenSubKey (extension + @"\OpenWithList")) - foreach (var app in GetAppFromRegistry (key, defaultApp, uniqueAppsSet, AssociationFlags.OpenByExeName, AppOpenWithRegistryType.FromMRUList)) + foreach (var app in GetAppFromRegistry (key, defaultApp, uniqueAppsSet, AssociationFlags.OpenByExeName, AppOpenWithRegistryType.FromSubkey)) yield return app; } |