From f031fc221a5073aed40944f41f19fae096a3e53a Mon Sep 17 00:00:00 2001 From: JKornev <8bit.dosninja@gmail.com> Date: Tue, 18 Dec 2018 11:19:06 +0300 Subject: [PATCH] Fix for invalid argument parsing logic --- HiddenCLI/Protect.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/HiddenCLI/Protect.cpp b/HiddenCLI/Protect.cpp index 91605fc..f0aacf8 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 (!CommandModeType::Execute) + if (!mode == CommandModeType::Execute) throw WException(ERROR_INVALID_PARAMETER, L"Error, target 'pid' isn't allowed"); m_procType = EProcTypes::TypeProcessId;