Skip to content

Commit

Permalink
Return true on default for system and wmic
Browse files Browse the repository at this point in the history
  • Loading branch information
eschan145 committed Jan 19, 2025
1 parent 1285f1f commit e8bbeae
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/api.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -334,13 +334,15 @@ bool taskkill(DWORD identifier, KillMethod method) {
std::string command = "TASKKILL /PID " +
std::to_string(identifier) + "/F";
system(command);
return true;
break;
}

case KillMethod::WMIC: {
std::string command = "wmic process where ProcessId=" +
std::to_string(identifier) + " delete";
system(command);
return true;
break;
}
}
Expand Down

0 comments on commit e8bbeae

Please sign in to comment.