Skip to content

Commit 1459439

Browse files
authored
Merge pull request #921 from Tharylia/fix-process-id
Fix reading empty process
2 parents c136818 + e792f34 commit 1459439

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Blish HUD/GameServices/GameIntegration/Gw2InstanceIntegration.cs

+2
Original file line numberDiff line numberDiff line change
@@ -292,6 +292,8 @@ private void TryAttachToGw2() {
292292
}
293293

294294
private Process GetGw2ProcessByPID(int pid, string src) {
295+
if (pid == 0) return null; // Fix reading empty process. Caused by MumbleLink mock tools.
296+
295297
try {
296298
return Process.GetProcessById(pid);
297299
} catch (ArgumentException) {

0 commit comments

Comments
 (0)