Skip to content

Commit

Permalink
Fix reading empty process
Browse files Browse the repository at this point in the history
  • Loading branch information
Tharylia committed Oct 7, 2023
1 parent c136818 commit e792f34
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 e792f34

Please sign in to comment.