mirror of
https://github.com/ShareX/ShareX.git
synced 2024-10-02 18:26:27 +13:00
Don't use StartupPath because it will be wrong in some cases
This commit is contained in:
parent
7c1bd7e51d
commit
ca8d2aad47
1 changed files with 2 additions and 2 deletions
|
@ -62,11 +62,11 @@ public static bool ExtractFFmpeg(string zipPath, string extractPath)
|
|||
{
|
||||
if (NativeMethods.Is64Bit())
|
||||
{
|
||||
SevenZipExtractor.SetLibraryPath(Path.Combine(Application.StartupPath, "7z-x64.dll"));
|
||||
SevenZipExtractor.SetLibraryPath(Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "7z-x64.dll"));
|
||||
}
|
||||
else
|
||||
{
|
||||
SevenZipExtractor.SetLibraryPath(Path.Combine(Application.StartupPath, "7z.dll"));
|
||||
SevenZipExtractor.SetLibraryPath(Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "7z.dll"));
|
||||
}
|
||||
|
||||
Helpers.CreateDirectoryIfNotExist(extractPath);
|
||||
|
|
Loading…
Reference in a new issue