OSDN Git Service

WinGui:
authorsr55 <sr55@b64f7644-9d1e-0410-96f1-a4d463321fa5>
Sun, 27 Feb 2011 14:25:31 +0000 (14:25 +0000)
committersr55 <sr55@b64f7644-9d1e-0410-96f1-a4d463321fa5>
Sun, 27 Feb 2011 14:25:31 +0000 (14:25 +0000)
- Fix a possible crash on startup

git-svn-id: svn://localhost/HandBrake/trunk@3816 b64f7644-9d1e-0410-96f1-a4d463321fa5

win/C#/Functions/Main.cs

index 3b1e546..f78d38a 100644 (file)
@@ -295,7 +295,7 @@ namespace Handbrake.Functions
 \r
             // Get the SHA1 Hash of HandBrakeCLI\r
             byte[] hash;\r
-            using (Stream stream = File.OpenRead("HandBrakeCLI.exe"))\r
+            using (Stream stream = File.OpenRead(Path.Combine(Application.StartupPath, "HandBrakeCLI.exe")))\r
             {\r
                 hash = SHA1.Create().ComputeHash(stream);\r
             }\r