Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion WinSyncScroll/Services/WinApiService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ public ICollection<WindowInfo> ListWindows()

var className = PInvoke.GetClassName(windowHandle);
var windowName = PInvoke.GetWindowText(windowHandle);
var process = Process.GetProcessById((int)processId);
using var process = Process.GetProcessById((int)processId);
var processName = process.ProcessName;

if (string.IsNullOrWhiteSpace(windowName))
Expand Down
Loading