Skip to content

Commit 781732b

Browse files
authored
Update GetWindows.cpp
1 parent 93de4be commit 781732b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/windows/GetWindows.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ namespace Screen_Capture {
1818

1919
DWORD pid;
2020
GetWindowThreadProcessId(hwnd, &pid);
21+
w.Name[0] = '\n';
2122
if (pid != GetCurrentProcessId()) {
2223
auto textlen = GetWindowTextA(hwnd, w.Name, sizeof(w.Name));
2324
}

0 commit comments

Comments
 (0)