Navigation Menu

Skip to content

Commit

Permalink
Fix for Windows 10 v.1710, it manages package cache poorly and some s…
Browse files Browse the repository at this point in the history
…ystem default packages have broken configuration.
  • Loading branch information
Mykhailo Makarov committed Sep 30, 2018
1 parent f19dcb3 commit b9eb5cc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions DataProviders/ImmersiveAppsProvider.cs
Expand Up @@ -242,12 +242,12 @@ public static bool Any
using (var packageKey = packageRepoKey.OpenSubKey(package))
{
// ReSharper disable once PossibleNullReferenceException
pathCache[package] = new PathCacheItem
var pkg = new PathCacheItem
{
DisplayName = (string)packageKey.GetValue("DisplayName"),
RootPath = (string)packageKey.GetValue("PackageRootFolder")
};

if (pkg.RootPath != null) pathCache[package] = pkg;
}
}
}
Expand Down Expand Up @@ -344,7 +344,7 @@ private static string ExtractStringFromPackageOptional(string resourceKey, strin
{
foreach (var uriTemplate in uriTemplates)
{
var pair = uriTemplate.Split(new[] { '?' }, 2);
var pair = uriTemplate.Split(new[] { '?' }, 2, StringSplitOptions.RemoveEmptyEntries);

var uri = new UriBuilder(pair[1].TrimEnd('}'));
var uriParts = uri.Path.Split('/').ToList();
Expand Down

0 comments on commit b9eb5cc

Please sign in to comment.