From dd65c173a95920697d5cf10c815374d4c6cbf23a Mon Sep 17 00:00:00 2001 From: Boris Makogonyuk Date: Sun, 13 Dec 2015 20:58:51 +0100 Subject: [PATCH] Bugfix for #404 When opening containing folder for `*.lnk` that cannot be resolved to a file name, the folder containing the `.lnk` will be opened. --- Plugins/Wox.Plugin.Program/Programs.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Plugins/Wox.Plugin.Program/Programs.cs b/Plugins/Wox.Plugin.Program/Programs.cs index 347f640b8a..66c4685dca 100644 --- a/Plugins/Wox.Plugin.Program/Programs.cs +++ b/Plugins/Wox.Plugin.Program/Programs.cs @@ -224,7 +224,9 @@ namespace Wox.Plugin.Program if (Path.EndsWith(".lnk")) { //get location of shortcut - Path = ResolveShortcut(Path); + var resolved = ResolveShortcut(Path); + if(!string.IsNullOrEmpty(resolved)) + Path = resolved; } //get parent folder Path = Directory.GetParent(Path).FullName;