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;