Skip to content

Commit

Permalink
Fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
pol-rivero committed Sep 11, 2023
1 parent 59cb19a commit f6102e5
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions DiscordAudioStream/ScreenCapture/ProcessHandleList.cs
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,9 @@ public static ProcessHandleList Refresh()
// Ignore suspended Windows Store apps
try
{
if (Dwmapi.GetBoolAttr(hWnd, Dwmapi.DwmWindowAttribute.CLOAKED))
{
return true;
}
} catch (InvalidOperationException)
if (Dwmapi.GetBoolAttr(hWnd, Dwmapi.DwmWindowAttribute.CLOAKED)) return true;
}
catch (InvalidOperationException)
{
Logger.Log($"Cannot get property CLOAKED of window {hWnd}. This is normal on Windows 7.");
}
Expand Down

0 comments on commit f6102e5

Please sign in to comment.