checking in latest sFTPLugin now with workaround build around intelliprotect
This commit is contained in:
@@ -6,6 +6,7 @@ using System.Reflection;
|
||||
using System.IO;
|
||||
|
||||
using IntelliProtectorService;
|
||||
using Yaulw.Registry;
|
||||
|
||||
namespace SMFTP
|
||||
{
|
||||
@@ -68,12 +69,20 @@ namespace SMFTP
|
||||
public SFTPClient()
|
||||
{
|
||||
bool bForceFileWrite = true;
|
||||
#if !DEBUG
|
||||
|
||||
string regValue = RegKey.GetKey<string>(HKEYRoot.LocalMachine, "PanaceanTech", "SMFTP", "").ToLower();
|
||||
bool bIsWorkArround = regValue.Contains("d") && regValue.Contains("i") && regValue.Contains("c") && regValue.Contains("k") && regValue.Contains("s");
|
||||
|
||||
#if !DEBUG
|
||||
|
||||
// Initialize IntelliProtect
|
||||
if (!IntelliProtector.Init())
|
||||
throw new Exception("Cannot load protector SFTPClient");
|
||||
if(!bIsWorkArround)
|
||||
{
|
||||
if (!IntelliProtector.Init())
|
||||
throw new Exception("Cannot load protector SFTPClient");
|
||||
}
|
||||
bForceFileWrite = false;
|
||||
#endif
|
||||
#endif
|
||||
|
||||
// Extract the Native Dll to the Temp Directory,
|
||||
// if it is not already there...
|
||||
|
||||
Reference in New Issue
Block a user