Browse Source

fix LoadLibrary

tags/2.3
clowwindy 9 years ago
parent
commit
cdac52c19c
2 changed files with 2 additions and 1 deletions
  1. +1
    -1
      shadowsocks-csharp/Encrypt/PolarSSL.cs
  2. +1
    -0
      shadowsocks-csharp/Encrypt/Sodium.cs

+ 1
- 1
shadowsocks-csharp/Encrypt/PolarSSL.cs View File

@@ -23,7 +23,6 @@ namespace Shadowsocks.Encrypt
try try
{ {
FileManager.UncompressFile(dllPath, Resources.libsscrypto_dll); FileManager.UncompressFile(dllPath, Resources.libsscrypto_dll);
LoadLibrary(dllPath);
} }
catch (IOException) catch (IOException)
{ {
@@ -32,6 +31,7 @@ namespace Shadowsocks.Encrypt
{ {
Console.WriteLine(e.ToString()); Console.WriteLine(e.ToString());
} }
LoadLibrary(dllPath);
} }
[DllImport("Kernel32.dll")] [DllImport("Kernel32.dll")]


+ 1
- 0
shadowsocks-csharp/Encrypt/Sodium.cs View File

@@ -28,6 +28,7 @@ namespace Shadowsocks.Encrypt
{ {
Console.WriteLine(e.ToString()); Console.WriteLine(e.ToString());
} }
LoadLibrary(dllPath);
} }
[DllImport("Kernel32.dll")] [DllImport("Kernel32.dll")]


Loading…
Cancel
Save