Skip to content

Commit

Permalink
Update GetWindows.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
smasherprog authored May 3, 2019
1 parent 01d44c7 commit 93de4be
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/windows/GetWindows.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,6 @@ namespace Screen_Capture {
GetWindowThreadProcessId(hwnd, &pid);
if (pid != GetCurrentProcessId()) {
auto textlen = GetWindowTextA(hwnd, w.Name, sizeof(w.Name));
// clamp the bounds
textlen = std::min(textlen, static_cast<int>(sizeof(w.Name)) - 1);
w.Name[textlen] = '\n';
}

srch *s = (srch *)lParam;
Expand Down

0 comments on commit 93de4be

Please sign in to comment.