From 4c70e75bfcaca18fc059d623d689a3a9eb81d76e Mon Sep 17 00:00:00 2001 From: Davide Giacometti Date: Fri, 12 Jun 2020 20:42:31 +0200 Subject: [PATCH] fix launcher network path (#4224) --- src/modules/launcher/Plugins/Microsoft.Plugin.Folder/Main.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/modules/launcher/Plugins/Microsoft.Plugin.Folder/Main.cs b/src/modules/launcher/Plugins/Microsoft.Plugin.Folder/Main.cs index 48e6103f04..b9ffdff7fb 100644 --- a/src/modules/launcher/Plugins/Microsoft.Plugin.Folder/Main.cs +++ b/src/modules/launcher/Plugins/Microsoft.Plugin.Folder/Main.cs @@ -257,6 +257,11 @@ namespace Microsoft.Plugin.Folder var folderName = search.TrimEnd('\\').Split(new[] { Path.DirectorySeparatorChar }, StringSplitOptions.None).Last(); var sanitizedPath = Regex.Replace(search, @"[\/\\]+", "\\"); + // A network path must start with \\ + if (sanitizedPath.StartsWith("\\")) + { + sanitizedPath = sanitizedPath.Insert(0, "\\"); + } return new Result {