Skip to content

Commit

Permalink
Merge pull request #921 from Tharylia/fix-process-id
Browse files Browse the repository at this point in the history
Fix reading empty process
  • Loading branch information
dlamkins authored Oct 7, 2023
2 parents c136818 + e792f34 commit 1459439
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -292,6 +292,8 @@ private void TryAttachToGw2() {
}

private Process GetGw2ProcessByPID(int pid, string src) {
if (pid == 0) return null; // Fix reading empty process. Caused by MumbleLink mock tools.

try {
return Process.GetProcessById(pid);
} catch (ArgumentException) {
Expand Down

0 comments on commit 1459439

Please sign in to comment.