Skip to content

Commit

Permalink
Fixed crash when two applications with the same process name change f…
Browse files Browse the repository at this point in the history
…ocus
  • Loading branch information
nefares committed May 9, 2022
1 parent ffeda80 commit 5a27021
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions WinBGMute/VolumeMixer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -171,15 +171,13 @@ public void ReloadAudio(bool reloadDevice = false)

}
AudioDevice.volumeSessionList.Add(cpid, volumeControl);



}


}
private ISimpleAudioVolume GetVolumeObject(int pid)
{
ReloadAudio();
if (!AudioDevice.volumeSessionList.ContainsKey(pid))
{
return null;
Expand Down

0 comments on commit 5a27021

Please sign in to comment.