We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4244dee commit 153404bCopy full SHA for 153404b
main.cpp
@@ -2076,6 +2076,7 @@ ProcInfos findMyProc(const char *procname, HANDLE hSnapshot) {
2076
std::vector<std::string> normalizeArgs(std::vector<std::string>& args) {
2077
// this function can seem a little obfuscated so let me help
2078
for (size_t i = 0; i < args.size(); i++) {
2079
+ if (args[i].empty()) continue; // if arg empty then program kaboom but i'm not sure how'd you pass an empty arg
2080
if (args[i].at(0) == '/') { // if it starts with a /
2081
args[i].at(0) = '-'; // then set it to - to normalize the argument, so /help turns into -help
2082
} else if (args[i].at(0) == '-') { // if it starts with a -
0 commit comments