From bb51542a603ec0b8a2642e4a8cbb3856d677b6db Mon Sep 17 00:00:00 2001 From: sr55 Date: Sun, 27 Feb 2011 14:25:31 +0000 Subject: [PATCH] WinGui: - Fix a possible crash on startup git-svn-id: svn://localhost/HandBrake/trunk@3816 b64f7644-9d1e-0410-96f1-a4d463321fa5 --- win/C#/Functions/Main.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/win/C#/Functions/Main.cs b/win/C#/Functions/Main.cs index 3b1e5463..f78d38a9 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); } -- 2.11.0