Skip to content

Commit 21e5b66

Browse files
fix: ‍
1 parent 26053e1 commit 21e5b66

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

main.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1749,7 +1749,7 @@ void FindProcessPorts(DWORD targetPid) {
17491749

17501750

17511751

1752-
void PIDinspect(const std::vector<DWORD>& pids, const std::vector<std::string>& names, HANDLE hshot, Statuses stats, int related, ) {
1752+
void PIDinspect(const std::vector<DWORD>& pids, const std::vector<std::string>& names, HANDLE hshot, Statuses stats, int related ) {
17531753
//^^^ ooh guys look i'm in the void
17541754
DWORD pid = pids[0];
17551755
std::unordered_map<DWORD, PROCESSENTRY32> pidMap;
@@ -2076,10 +2076,10 @@ ProcInfos findMyProc(const char *procname, HANDLE hSnapshot) {
20762076
std::vector<std::string> normalizeArgs(std::vector<std::string>& args) {
20772077
// this function can seem a little obfuscated so let me help
20782078
for (size_t i = 0; i < args.size(); i++) {
2079-
if (args[i].at(0) == "/") { // if it starts with a /
2080-
args[i].at(0) = "-"; // then set it to - to normalize the argument, so /help turns into -help
2081-
} else if (args[i].at(0) == "-") { // if it starts with a -
2082-
if (args[i].at(1) == "-") { // then check if the person put another - like --help
2079+
if (args[i].at(0) == '/') { // if it starts with a /
2080+
args[i].at(0) = '-'; // then set it to - to normalize the argument, so /help turns into -help
2081+
} else if (args[i].at(0) == '-') { // if it starts with a -
2082+
if (args[i].at(1) == '-') { // then check if the person put another - like --help
20832083
args[i].erase(0, 1); // if so then delete first char and it turns into -help
20842084
} else {
20852085
// do nothing

0 commit comments

Comments
 (0)