Skip to content

Commit

Permalink
do not throw an exception if GetWindowText fails, keep enumerating wi…
Browse files Browse the repository at this point in the history
…ndows
  • Loading branch information
StefanKoell committed Jun 21, 2024
1 parent a3357b4 commit 2bbed7c
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,7 @@ BOOL Filter(HWND hWnd, LPARAM lParam)
{
var errorCode = Marshal.GetLastWin32Error();
if (errorCode != 0)
{
throw new Win32Exception(errorCode);
}
return true;
return true;
}

windowName = new string(windowNameChars);
Expand Down

0 comments on commit 2bbed7c

Please sign in to comment.