Add clearing of passed window list like with other platforms

This commit is contained in:
Myned 2020-05-23 00:27:19 -04:00
parent f0cf5a5c19
commit 3959e41e88
No known key found for this signature in database
GPG Key ID: 24318A323F309244

View File

@ -47,6 +47,8 @@ static bool WindowValid(HWND window)
void GetWindowList(vector<string>& windows)
{
windows.resize(0);
HWND window = GetWindow(GetDesktopWindow(), GW_CHILD);
while (window)