From a780193b7c3f1b9459cc3002620b13d1e1eefb13 Mon Sep 17 00:00:00 2001 From: Jora Kornev Date: Tue, 18 Dec 2018 11:21:43 +0300 Subject: [PATCH] Fix for protection PID parsing --- HiddenCLI/Protect.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/HiddenCLI/Protect.cpp b/HiddenCLI/Protect.cpp index f0aacf8..cfa8684 100644 --- a/HiddenCLI/Protect.cpp +++ b/HiddenCLI/Protect.cpp @@ -31,7 +31,7 @@ void CommandProtect::LoadArgs(Arguments& args, CommandModeType mode) } else if (object == L"pid") { - if (!mode == CommandModeType::Execute) + if (mode != CommandModeType::Execute) throw WException(ERROR_INVALID_PARAMETER, L"Error, target 'pid' isn't allowed"); m_procType = EProcTypes::TypeProcessId;