githubのコードからのfolk
Revision | bb51542a603ec0b8a2642e4a8cbb3856d677b6db (tree) |
---|---|
Time | 2011-02-27 23:25:31 |
Author | sr55 <sr55@b64f...> |
Commiter | sr55 |
WinGui:
- Fix a possible crash on startup
git-svn-id: svn://localhost/HandBrake/trunk@3816 b64f7644-9d1e-0410-96f1-a4d463321fa5
@@ -295,7 +295,7 @@ namespace Handbrake.Functions | ||
295 | 295 | |
296 | 296 | // Get the SHA1 Hash of HandBrakeCLI |
297 | 297 | byte[] hash; |
298 | - using (Stream stream = File.OpenRead("HandBrakeCLI.exe")) | |
298 | + using (Stream stream = File.OpenRead(Path.Combine(Application.StartupPath, "HandBrakeCLI.exe"))) | |
299 | 299 | { |
300 | 300 | hash = SHA1.Create().ComputeHash(stream); |
301 | 301 | } |