summaryrefslogtreecommitdiffstats
path: root/win/C#
diff options
context:
space:
mode:
authorsr55 <[email protected]>2011-02-27 14:25:31 +0000
committersr55 <[email protected]>2011-02-27 14:25:31 +0000
commit601dab390c4fa716e0e39a84cd94e01e70411aed (patch)
tree98779a7b864b4edee8bb71ce0f98eedaec1fb119 /win/C#
parent4620cb585c3da22486a1ab85b87694639f0fb70d (diff)
WinGui:
- Fix a possible crash on startup git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3816 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/C#')
-rw-r--r--win/C#/Functions/Main.cs2
1 files changed, 1 insertions, 1 deletions
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);
}