6
0
mirror of https://github.com/JKornev/hidden synced 2024-06-16 12:08:05 +00:00

Fix for invalid argument parsing logic

This commit is contained in:
JKornev 2018-12-18 11:19:06 +03:00
parent 01bba71d6d
commit f031fc221a

@ -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;