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