File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2137,7 +2137,7 @@ int main(int argc, char* argv[]) {
21372137 // snapshot of all processes in the system first so we can pass it to every function from there on
21382138
21392139 HANDLE hshot = CreateToolhelp32Snapshot (TH32CS_SNAPPROCESS , 0 );
2140- if (INVALID_HANDLE_VALUE == hSnapshot ) {return {}};
2140+ if (INVALID_HANDLE_VALUE == hshot ) {return {};}
21412141 PIDinspect (pids, trash, hshot);
21422142 CloseHandle (hshot);
21432143 } else {
@@ -2158,7 +2158,7 @@ int main(int argc, char* argv[]) {
21582158 else if (arg[0 ] != ' -' ) { // if it doesn't start with -- or -
21592159 std::string procName = arg;
21602160 HANDLE hshot = CreateToolhelp32Snapshot (TH32CS_SNAPPROCESS , 0 );
2161- if (INVALID_HANDLE_VALUE == hSnapshot ) {return {}};
2161+ if (INVALID_HANDLE_VALUE == hshot ) {return {};}
21622162 ProcInfos r = findMyProc (procName.c_str (), hshot);
21632163 if (!r.pids .empty ()) {
21642164 std::vector<DWORD > dwPids (r.pids .begin (), r.pids .end ());
You can’t perform that action at this time.
0 commit comments