From 601dab390c4fa716e0e39a84cd94e01e70411aed Mon Sep 17 00:00:00 2001 From: sr55 Date: Sun, 27 Feb 2011 14:25:31 +0000 Subject: WinGui: - Fix a possible crash on startup git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3816 b64f7644-9d1e-0410-96f1-a4d463321fa5 --- win/C#/Functions/Main.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'win/C#/Functions/Main.cs') diff --git a/win/C#/Functions/Main.cs b/win/C#/Functions/Main.cs index 3b1e54631..f78d38a97 100644 --- a/win/C#/Functions/Main.cs +++ b/win/C#/Functions/Main.cs @@ -295,7 +295,7 @@ namespace Handbrake.Functions // Get the SHA1 Hash of HandBrakeCLI byte[] hash; - using (Stream stream = File.OpenRead("HandBrakeCLI.exe")) + using (Stream stream = File.OpenRead(Path.Combine(Application.StartupPath, "HandBrakeCLI.exe"))) { hash = SHA1.Create().ComputeHash(stream); } -- cgit v1.2.3