This fixes a bug where if INCLUDE_MINIMIZED was set and the window size was (0, 0), the window would still be excluded from the resulting list that was created.
@@ -180,7 +180,7 @@ static bool check_window_valid(HWND window, enum window_search_mode mode)
return false;
if (styles & WS_CHILD)
- if (rect.bottom == 0 || rect.right == 0)
+ if (mode == EXCLUDE_MINIMIZED && (rect.bottom == 0 || rect.right == 0))
return true;