Skip to content

Commit

Permalink
Fix: -h parameter did not work.
Browse files Browse the repository at this point in the history
  • Loading branch information
michi84o committed Jun 1, 2020
1 parent 37ee951 commit ccfd018
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pprio.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ int main(int argc, char* argv[])
std::cout << std::left << std::setw(6) << std::setfill(' ');
std::cout << pid;

if (!SetPriorityClass(hProcess, ABOVE_NORMAL_PRIORITY_CLASS))
if (!SetPriorityClass(hProcess, prioValue))
{
fail = true;
std::cout << "FAIL" << std::endl;
Expand Down

0 comments on commit ccfd018

Please sign in to comment.