6
0
mirror of https://github.com/JKornev/hidden synced 2024-06-20 22:18:04 +00:00

Fix for protection PID parsing

This commit is contained in:
Jora Kornev 2018-12-18 11:21:43 +03:00 committed by GitHub
parent f031fc221a
commit a780193b7c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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