Skip to content

Commit

Permalink
Only break out of process finding loop if the handle was found (there…
Browse files Browse the repository at this point in the history
… may be multiple witness.exe running)
  • Loading branch information
NewSoupVi committed Apr 30, 2024
1 parent 5b7f3de commit b613334
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Source/Memory.cpp
Expand Up @@ -42,7 +42,10 @@ Memory::Memory() {
if (entry.szExeFile == process64) {
supposedlyFound = true;
_handle = OpenProcess(PROCESS_ALL_ACCESS, FALSE, entry.th32ProcessID);
break;

if (_handle) {
break;
}
}
}

Expand Down

0 comments on commit b613334

Please sign in to comment.