Fix Wow64 redirection issue

This commit is contained in:
Paddy Xu
2017-06-02 22:37:41 +03:00
parent ce8cfacee1
commit 1bc193a3b6
2 changed files with 20 additions and 14 deletions

View File

@@ -50,10 +50,17 @@ namespace QuickLook
if (string.IsNullOrEmpty(_path))
return;
Process.Start(new ProcessStartInfo(_path)
try
{
WorkingDirectory = Path.GetDirectoryName(_path)
});
Process.Start(new ProcessStartInfo(_path)
{
WorkingDirectory = Path.GetDirectoryName(_path)
});
}
catch (Exception e)
{
Debug.WriteLine(e.Message);
}
BeginHide();
}