diff --git a/YaraSharp/YaraSharp.cpp b/YaraSharp/YaraSharp.cpp index 9d03ac3..d1b47fc 100644 --- a/YaraSharp/YaraSharp.cpp +++ b/YaraSharp/YaraSharp.cpp @@ -13,7 +13,7 @@ namespace YaraSharp { CCompiler^ TestCompiler = gcnew CCompiler(ExternalVariables); - if (TestCompiler->AddFile(FilePathList[i]) || TestCompiler->GetErrors(false)->Count > 0) + if (TestCompiler->AddFile(FilePathList[i])) { if (CompilationErrors->ContainsKey(FilePathList[i])) {