Skip to content

Commit 4610267

Browse files
&&&&&&&&&&&&&&&&&&&&&&&&🤡😤🤬😡
1 parent 0cdf5f8 commit 4610267

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎main.cpp‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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());

0 commit comments

Comments
 (0)