mirror of
https://github.com/JKornev/hidden
synced 2024-06-25 16:38:05 +00:00
Fix for invalid argument parsing logic
This commit is contained in:
parent
01bba71d6d
commit
f031fc221a
@ -31,7 +31,7 @@ void CommandProtect::LoadArgs(Arguments& args, CommandModeType mode)
|
|||||||
}
|
}
|
||||||
else if (object == L"pid")
|
else if (object == L"pid")
|
||||||
{
|
{
|
||||||
if (!CommandModeType::Execute)
|
if (!mode == CommandModeType::Execute)
|
||||||
throw WException(ERROR_INVALID_PARAMETER, L"Error, target 'pid' isn't allowed");
|
throw WException(ERROR_INVALID_PARAMETER, L"Error, target 'pid' isn't allowed");
|
||||||
|
|
||||||
m_procType = EProcTypes::TypeProcessId;
|
m_procType = EProcTypes::TypeProcessId;
|
||||||
|
Loading…
Reference in New Issue
Block a user